Running Ubuntu 18.04 with Gnome Shell, when clicking on a hyperlink in Evince it opens in Firefox, instead of Chromium which I have set as my default browser.
I have set the default browser through the settings GUI, and also by running the following commands:
sudo update-alternatives --set x-www-browser /usr/bin/chromium-browser
sudo update-alternatives --set gnome-www-browser /usr/bin/chromium-browser
xdg-settings set default-web-browser chromium-browser.desktop
I have added the following lines to ~/.config/mimeapps.list
:
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
I have verified that the following commands all open with Chromium:
xdg-open test.html
x-www-browser test.html
gnome-www-browser test.html
sensible-browser test.html
The BROWSER
environment variable is unset by default on my system, but even when running Evince with this variable set links still open in Firefox:
BROWSER=/usr/bin/chromium-browser /usr/bin/evince test.pdf
What else can I try to make links clicked in Evince open in my default browser?