Each time I go to about:support and click on "Open Directory", Firefox opens it with SMPlayer and then mpv/mplayer complains about :
Playing: /home/sebastien/.mozilla/firefox-esr/empty6/persdict.dat
Failed to recognize file format.
Exiting... (Errors when loading file)
So I've searched "smplayer" in about:preferences#applications but couldn't find it.
I've also searched for "smplayer" in about:config but couldn't find it either.
And finally I've searched in the XDG mimes types definitions :
$ xdg-mime query filetype ~/.mozilla/firefox-esr/empty6/persdict.dat
text/plain
$ xdg-mime query default text/plain
kate.desktop
$ xdg-mime query filetype ~/
inode/directory
$ xdg-mime query default inode/directory
dolphin.desktop
EDIT 0 : Adding a few xdg-open
commands :
$ xdg-open ~/.mozilla/firefox-esr/empty6/persdict.dat
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
$ pgrep -af /persdict.dat
32659 /usr/bin/kate -b /home/sebastien/.mozilla/firefox-esr/empty6/persdict.dat
$ xdg-open Documents
Fontconfig warning: ignoring C.UTF-8: not a valid language tag
$ pgrep -af /Documents
8437 /usr/bin/dolphin --icon system-file-manager -caption Dolphin /home/sebastien/Documents
EDIT 1 : inode/directory=
entry in ~/.local/share/applications/mimeapps.list
:
$ grep inode/directory= ~/.local/share/applications/mimeapps.list
inode/directory=dolphin.desktop;smplayer.desktop;kde4-dolphin.desktop;vlc.desktop;caja-2.desktop;kde4-kfmclient_dir.desktop;kde4-gwenview.desktop;easytag.desktop;nemo.desktop;audacious-qt.desktop;Thunar-folder-handler.desktop;qmmp_cue.desktop;audacious.desktop;kde4-k4dirstat.desktop;pcmanfm.desktop;qmmp_dir.desktop;qmmp_enqueue.desktop;
inode/directory=dolphin.desktop
EDIT 2 : The Dolphin application launcher is not found by Firefox because it's in the kde4
subfolder of /usr/share/applications/
:
$ locate /dolphin.desktop
/usr/share/applications/kde4/dolphin.desktop
Explanation : Firefox couldn't find dolphin.desktop
in /usr/share/applications/
, therefore it was using the next entry for inode/directory
mimetype in ~/.local/share/applications/mimeapps.list
file which was smplayer.desktop
:
$ grep inode/directory= ~/.local/share/applications/mimeapps.list
inode/directory=dolphin.desktop;smplayer.desktop;kde4-dolphin.desktop;vlc.desktop;caja-2.desktop;kde4-kfmclient_dir.desktop;kde4-gwenview.desktop;easytag.desktop;nemo.desktop;audacious-qt.desktop;Thunar-folder-handler.desktop;qmmp_cue.desktop;audacious.desktop;kde4-k4dirstat.desktop;pcmanfm.desktop;qmmp_dir.desktop;qmmp_enqueue.desktop;
inode/directory=dolphin.desktop
Solution : Thanks to ashvatthama's anwser : To solve this pb., you can type this command :
xdg-mime default kde4-dolphin.desktop inode/directory
and now it works fine :
$ pgrep -af /empty6
29083 dolphin --icon system-file-manager -caption Dolphin /home/sebastien/.mozilla/firefox-esr/empty6
I've seen this bug for years, I'd love to solve it.
Can you help me ?