Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I work with Xubuntu 12.04 and use Okular (version 0.14.3) to view pdf files. If I click a web link in a pdf file (created with "pdflatex" using the "hyperref" package), "Abiword" (It's a word-processing software, like Libreoffice writer) is opened instead of my default browser google-chrome. How can I change this behavior? The settings in Okular do not seem to provide a solution.

(Note that I set google-chrome as the preferred application for web browsing under Settings -> Preferred Applications, so that's not the problem).

share|improve this question
Is this happening only with okular? Have you tried any other pdf viewer such as evince? – Anwar Shah Jul 13 '12 at 6:30

The answer by @Marius is correct. It helped me. Just a clarification.

  1. Run kcmshell4 filetypes in a console or by Alt+F2. File Associations - KDE Control Module will open.
  2. Search for html and select the file type text/html.
  3. Move the application name you want to be a default for html in the "Application Preference Order" to the top.
share|improve this answer
up vote 4 down vote accepted

The answer can be found in the okular devel list here

The important part is quoted here

Is it linking to an html file? If so you might want to also check which is the default application in kcmshell4 filetypes for html mimetype.

share|improve this answer
Though theoretically the answer may be correct. But it is preferable to include the necessary details here. – Anwar Shah Jul 13 '12 at 6:32

For newer KDE versions you might need to run:

kcmshell4 componentchooser

and set the "Web Browser" to the command of your preferred browser.

This worked on Arch Linux, at least.

share|improve this answer
This worked for me too! (I'm on Openbox on ArchLinux) – Abhinav Jan 15 at 19:58

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.