每次我转到about:support并单击“打开目录”时,Firefox 都会使用 SMPlayer 打开它,然后 mpv/mplayer 会抱怨:
Playing: /home/sebastien/.mozilla/firefox-esr/empty6/persdict.dat
Failed to recognize file format.
Exiting... (Errors when loading file)
所以我在about:preferences#applications中搜索了“smplayer”,但找不到。
我还在about:config中搜索了“smplayer”,但也找不到。
最后我在 XDG mimes 类型定义中进行了搜索:
$ 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
编辑 0:添加一些xdg-open
命令:
$ 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
编辑1:inode/directory=
进入~/.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
编辑 2: Firefox 找不到 Dolphin 应用程序启动器,因为它位于以下kde4
子文件夹中/usr/share/applications/
:
$ locate /dolphin.desktop
/usr/share/applications/kde4/dolphin.desktop
解释:Firefox 找不到dolphin.desktop
in /usr/share/applications/
,因此它使用文件中的inode/directory
mimetype的下一个条目是:~/.local/share/applications/mimeapps.list
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
解决方案:感谢ashvatthama的anwser:要解决此问题,您可以键入以下命令:
xdg-mime default kde4-dolphin.desktop inode/directory
现在它工作正常:
$ pgrep -af /empty6
29083 dolphin --icon system-file-manager -caption Dolphin /home/sebastien/.mozilla/firefox-esr/empty6
我已经看到这个错误多年了,我很想解决它。
你能帮助我吗 ?