Lib*_*dam 29 document-management okular
我刚刚开始使用 Okular,我喜欢它。当我在 pdf 中时,它有很多我需要的功能,并且它已经自动打开了 epub。如何让它默认打开 pdf 而不是“文档查看器”?
我感谢您的帮助!
jmi*_*rez 13
好吧,其他答案都不适用于 14.04,Okular 根本没有出现在列表中。但这非常有效:
mimeopen -d myfile.pdf
Run Code Online (Sandbox Code Playgroud)
它将为您提供可以打开文件的应用程序列表,并且还会为您更新默认应用程序。
$ mimeopen -d myfile.pdf
Please choose a default application for files of type application/pdf
1) Print Preview (evince-previewer)
2) Xournal (xournal)
3) MuPDF (mupdf)
4) Adobe Reader 9 (AdobeReader)
5) GIMP Image Editor (gimp)
6) Document Viewer (evince)
7) Other...
use application
Run Code Online (Sandbox Code Playgroud)
选择其中之一会将其设置为application/pdf文件类型的默认值。您可以使用以下Other...选项轻松地将任何可执行文件设置为默认值:
use application #7
use command: okular
Opening "myfile.pdf" with usr (application/pdf)
Run Code Online (Sandbox Code Playgroud)
旁白:如果okular不起作用,您可能想尝试输入完整路径 ( usr/bin/okular)。您可以通过运行找到 Okular 所在的位置which okular。