Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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!

share|improve this question

4 Answers 4

up vote 10 down vote accepted

According to here, Right click the file of the format you want, select properties:

enter image description here

Go to the open with tab, select the program you want to be the default for that type of file, then press the button Set as Default:

enter image description here

share|improve this answer
Brilliant. Thank you everyone for your input. –  LibraryGeekAdam Oct 23 '12 at 13:31

In short, if I remember correctly :

  • Right click on a PDF,
  • Properties,
  • Open with,
  • Select an app,
  • Set as default.
share|improve this answer

First open a terminal and use this command:

gedit ~/.local/share/applications/defaults.list

After opening it, Under the [Default Applications] section add a line like this


Now save the file and exit gedit.

share|improve this answer
I'd add a note to make a backup first. –  hexafraction Oct 22 '12 at 21:02

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:

Step 1: Right click on any pdf file => Open with => find Okular

The name of okular applications now should be specified in mimeapps.list. Now move to step 2.

Step 2: gedit ~/.local/share/applications/mimeapps.list

Step 3: Find okular in [Added association] and copy to [Default application] section.
In my case, it is 'application/pdf=kde4-okularApplication_pdf.desktop;'

And you are done.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.