I have just started using Okular and I love it. It has a lot of functionality that I need when I am in pdfs and it already opens up epubs automatically. How to I get it to open pdfs by default instead of "Document Viewer?"
I appreciate the help!
I have just started using Okular and I love it. It has a lot of functionality that I need when I am in pdfs and it already opens up epubs automatically. How to I get it to open pdfs by default instead of "Document Viewer?"
I appreciate the help!
According to here, Right click the file of the format you want, select
properties
:Go to the
open with
tab, select the program you want to be the default for that type of file, then press the buttonSet as Default
:Well, none of the other answers worked on 14.04, Okular simply doesn't show up in the list. But this worked perfectly:
It will give you a list of applications that can open the file, and will also update the default application for you.
Selecting one of these will set it as the default for
application/pdf
file types. You can easily set any executable to be the default by using theOther...
option:Aside: If
okular
doesn't work, you might want to try entering the full path (usr/bin/okular
). You can find out where Okular is located by runningwhich okular
.In Ubuntu 14.04, the file you need to edit is :~/.local/share/applications/mimeapps.list
The name of okular may varies. Someone may also find that there is no "Set as default" button.
So follow these steps:
The name of okular applications now should be specified in mimeapps.list. Now move to step 2.
And you are done.
First open a terminal and use this command:
After opening it, Under the
[Default Applications]
section add a line like thisNow save the file and exit gedit.
In short, if I remember correctly :