因为我来自Win7,所以我对ubuntu很陌生。在win7中,我使用Foxit打开pdf文档。
在网上搜索时,我发现这种方法安装了Foxit。
cd Downloads/
tar -xvf FoxitReader-1.1.0.tar.bz2
cd 1.1-release/
./FoxitReader 如您所见,为了打开Foxit,我必须从cmd运行它,但是我想用foxit自动打开pdf文件。我怎么能这么做?
发布于 2016-08-05 08:40:43
一种解决方案是查找*.desktop文件FoxitReader.desktop,并在行的末尾添加%F,以Exec开头
详细信息:在我的Ubuntu16.04机器中,我在下面的文件夹中找到了该文件
cd /$HOME/FoxitSoftware/FoxitReader/
vim FoxitReader.desktop文件最初是这样的:
1 [Desktop Entry]
2 Name=Foxit Reader
3 Comment=View pdf documents
4 Keywords=pdf;octet-stream;
5 StartupNotify=true
6 Terminal=false
7 Type=Application
8 #Icon=FoxitReader
9 X-GNOME-DocPath=
10 X-GNOME-Bugzilla-Bugzilla=GNOME
11 X-GNOME-Bugzilla-Product=FoxitReader
12 X-GNOME-Bugzilla-Component=BugBuddyBugs
13 X-GNOME-Bugzilla-Version=3.14.1
14 Categories=GNOME;Viewer;Graphics;2DGraphics;VectorGraphics;
15 MimeType=application/pdf;application/octet-stream;
16 Exec=/home/pbirol/FoxitSoftware/FoxitReader/FoxitReader.sh
17 Icon=/home/pbirol/FoxitSoftware/FoxitReader/images/FoxitReader.png我只修改了第16行,并在末尾添加了%F:
16 Exec=/home/pbirol/FoxitSoftware/FoxitReader/FoxitReader.sh %F由于我的大部分*.desktop文件都在/usr/share/application/文件夹中,所以我也复制了它,只是为了确定(但是,我不确定这个部分是否必要)。
sudo cp FoxitReader.desktop /usr/share/applications/现在,FoxitReader是ubuntu在"open“列表中识别的程序列表的一部分,所以我只是转到一个pdf文件,right-clicked > Open with > View all applications并选择了FoxitReader。
发布于 2014-12-14 13:16:13
你只需要去哪里你的PDF文件,点击正确的按钮,然后点击“打开与”。希望它解决了你的问题
https://askubuntu.com/questions/561256
复制相似问题