我正在运行 Fedora 20 和 Gnome 3.12。最近,我通过安装了 KDE,yum
但决定坚持使用 Gnome。自从安装 KDE 以来,xdg-open
和gnome-open
命令不会使用关联的应用程序打开文件,而是打开 Nautilus,选择文件。双击 Nautilus 中的文件将打开关联的应用程序。
例如:
[user@host ~]$ xdg-mime query filetype test.pdf
application/pdf
[user@host ~]$ xdg-mime query default application/pdf
evince.desktop
[user@host ~]$ xdg-open test.pdf
[user@host ~]$ gnome-open test.pdf
但最后两个命令都打开 Nautilus。另一方面,kde-open
做工作,打开证据(并向kioclient
标准输出写入一些内容,不知道这是否有任何相关性):
[user@host ~]$ kde-open test.pdf
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.sheet.binary.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.addin.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.sheet.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-word.template.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.template.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.template.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-word.document.macroEnabled.12"
kioclient(27111) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.slide.macroEnabled.12"
我知道这个线程,但是使用该mimeopen
命令并没有解决我的问题。
到目前为止我还没有卸载 KDE,因为我不确定具体如何卸载,而且我不想破坏东西。然而,任何涉及摆脱 KDE 的解决方案都是可以接受的,只要给出一些关于如何摆脱 KDE 的指示即可。