This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Okular not using default browser

Tags: None
(comma "," separated)
piperfw
Registered Member
Posts
5
Karma
0

Okular not using default browser

Thu Sep 12, 2019 2:43 pm
I have two web browsers installed on my system (arch with i3 wm): qutebrowser and chromium.

I have the following set
Code: Select all
echo $BROWSER #qutebrowser
xdg-settings get default-web-browser #org.qutebrowser.qutebrowser.desktop

As well as the default applications (in mimeapps.list)
Code: Select all
x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop;
x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop;

When clicking on a URL anywhere else in my system (e.g. terminal), qutebrowser is open as expected.
However, okular instead launches chromium when a URL link is clicked. I cannot determine why.

The okular handbook says "the default KDE handler" will be invoked on clicking a link - what might this refer to on my system (if the above is not a bug)?

Any help would be appreciated.
User avatar
Gallaecio
KDE Developer
Posts
116
Karma
0
OS
What web browser shows up in the Default Applications module of the KDE system settings?
piperfw
Registered Member
Posts
5
Karma
0
I do not have the Desktop environment (Plasma) installed so cannot check this setting.

Is it perhaps possible to edit this setting via a configuration file in ~/.config? I can currently only see kdeglobals which has the content

Code: Select all
[$Version]
update_info=filepicker.upd:filepicker-remove-old-previews-entry

[KShortcutsDialog Settings]
Dialog Size=995,618
zephirum
Registered Member
Posts
1
Karma
0

Re: Okular not using default browser

Fri Oct 14, 2022 10:46 am
Hi,

I had (until 5 minutes ago) the same problem: arch with i3, no kdesettings application to immediately change default browser, and okular alone opens hyperlinks in firefox instead of brave.

$ xdg-settings get default-web-browser
brave-browser.desktop

Thanks for the suggestion about kdeglobals. Adding the following to the end of .config/kdeglobals solved this for me:

[General]
BrowserApplication=brave-browser.desktop
piperfw
Registered Member
Posts
5
Karma
0
zephirum wrote:Adding the following to the end of .config/kdeglobals solved this for me:

[General]
BrowserApplication=brave-browser.desktop


Thanks for sharing what worked for you. In fact, since I made the original post (over 2 years ago) it seems some KDE update resolved the issue for me personally, but I've made a note of the BrowserApplication directive if the behaviour returns, and am sure others landing on this page will find it useful - thanks!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]