Clicking links in pdfs opened with Okular opens Abiword (instead of the default browser)
Solution 1
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.
Solution 2
The answer by @Marius is correct. It helped me. Just a clarification.
- Run
kcmshell4 filetypes
orkcmshell5 filetypes
in a console or byAlt+F2
. File Associations - KDE Control Module will open. - Search for
html
and select the file typetext/html
. - Move the application name you want to be a default for
html
in the "Application Preference Order" to the top.
Solution 3
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.
Related videos on Youtube
![Torinouq](https://i.stack.imgur.com/XkyD2.png?s=256&g=1)
Torinouq
Updated on September 18, 2022Comments
-
Torinouq almost 2 years
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).
-
Admin almost 12 yearsIs this happening only with okular? Have you tried any other pdf viewer such as evince?
-
Admin over 3 yearsOkular tries to open links with the script editor in RStudio on my Ubuntu 20.04 system. :/
-
-
Anwar almost 12 yearsThough theoretically the answer may be correct. But it is preferable to include the necessary details here.
-
Abhinav over 8 yearsThis worked for me too! (I'm on Openbox on ArchLinux)
-
Mark over 7 yearsThis worked for me on Kubuntu 16.10, after adjusting filetype and default browser settings didn't, which makes me wonder what the point of those other two is. Is there some way, opaque to em, in which all these settings should be used to work and play nicely together, rather than contradict and override?
-
dessert over 6 yearsWorks perfectly for Okular in Lubuntu 16.04, while the
kcmshell4 filetypes
way didn't. -
codeling over 5 yearsunfortunately, this doesn't do the trick for me... for html, Firefox is first option, but still not opened. Seems like the Firefox entry is somehow invalid, it is skipped. No idea how to "fix" it, though.
-
yelly over 5 years@codeling, the solution still works for me. I am on Linux Mint 19.
-
Nero Vanbiervliet about 3 yearsOn my recent version of ubuntu, it was
kcmshell5 filetypes
(v5 instead of v4)