Nautilus的’开放’列表
在nautilus中,当我尝试使用Adobe Reader打开pdf时,我无法在open with...
中open with...
Adobe Reader。 在海豚中没有这样的问题。
如何在nautilus中将Adobe Reader Link添加到“打开方式…”列表中?
我在KDE环境中使用nautilus。
已安装的程序有一个.desktop
,必须编辑才能在nautilus的“打开列表”中列出
要做到这一点,首先必须找到该文件
ls /usr/share/applications/`
你应该能够猜出与你的程序相关的.desktop
。
假设我想将vlc添加到列表中,我编辑桌面文件
sudo gedit /usr/share/applications/vlc.desktop
并将Exec=vlc
更改为Exec=vlc %u
在你的情况下你编辑:
sudo gedit /usr/share/applications/AdobeReader.desktop
并将Exec=AdobeReader
更改为Exec=AdobeReader %u
使用mimeopen
选择默认选项。 该应用程序也将在Nautilus中提供。
从man mimeopen
-d, --ask-default Let the user choose a new default program for given files.
只需在终端运行
mimeopen -d file.pdf
并选择你的选择。 它也将默认来自Nautilus。
例:
souravc@vworkstation:~/Downloads$ mimeopen -d asgmnt.pdf Please choose a default application for files of type application/pdf 1) Document Viewer (evince) 2) Adobe Reader 9 (AdobeReader) 3) Other... use application #2 Opening "asgmnt.pdf" with Adobe Reader 9 (application/pdf)