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?
Best Answer
The following commands now work, allowing the default browser to be changed without even needing to restart Evince:
I'm not sure why these did not work when I originally asked the question; I can only imagine that some factor was reset by restarting the system during my testing.