文件 lens 和 xdg-open 只打开 nautilus 而不是正确的应用程序

che*_*--- 10 nautilus unity nautilus-elementary xdg-open lenses

因为有些日子我的 Files 镜头只打开 nautilus 而不是与文件扩展名关联的正确应用程序。例如,如果我选择一个 PDF 文件,Nautilus 是 openend,指向文件所在的目录(并且文件被选中),但 Adob​​e Reader 没有打开。

然后我在终端中做同样的事情

xdg-open sample.pdf
Run Code Online (Sandbox Code Playgroud)

也只打开了 Nautilus。

xdg-mime 向我展示了以下信息:

$ xdg-mime query default application/pdf
acroread.desktop
Run Code Online (Sandbox Code Playgroud)

/usr/share/applications/acroread.desktop 文件:

[Desktop Entry]
Name=Adobe Reader 9
MimeType=application/pdf;application/vnd.fdf;application/vnd.adobe.pdx;application/vnd.adobe.xdp+xml;application/vnd.adobe.xfdf;
Exec=acroread 
Type=Application
GenericName=PDF Viewer
Terminal=false
Icon=AdobeReader9
Caption=PDF Viewer
X-KDE-StartupNotify=false
Categories=Application;Office;Viewer;X-Red-Hat-Base;
InitialPreference=9
Run Code Online (Sandbox Code Playgroud)

与图像、音乐文件和办公文档等其他文件类型相同。

然后我双击 Nautilus 中的文件,一切正常,并打开了正确的应用程序。

我认为这种行为与我几天前安装但在这些问题后卸载的 Thunar 有关。

有什么建议?

Pav*_* G. 9

我在安装 xfce 时遇到了同样的问题(我的问题可以在这里找到)。

卸载所有 xubuntu*、xfdesktop4* 和 xfce4* 软件包(和 thunar)后,我的问题解决了。

也许你应该从输入开始:

aptitude search xfce xfd xubuntu | grep ^i

为了查看您的系统中安装了哪些软件包。

然后继续卸载。