Recently I wanted to set Google Chrome by default on my fresh Lubuntu 19.04 VM and despite the presence of the
Make Google Chrome as default browser button, it never works: Firefox remains the default browser.
I wanted to setup Google Chrome by default without uninstalling Mozilla Firefox as I use both browsers. Open a Terminal then do the following:
BROWSER variable to
/usr/bin/google-chrome-stable as shown below. Save the changes.
sudo update-alternatives --config x-www-browser then choose the
/usr/bin/google-chrome-stable entry in
manual mode (
2 in the screenshot below).
sudo update-alternatives --config gnome-www-browser. Do the same as above.
Type the following commands:
sudo xdg-settings set default-web-browser google-chrome.desktop
sudo xdg-mime default google-chrome.desktop x-scheme-handler/http
sudo xdg-mime default google-chrome.desktop x-scheme-handler/https
sudo xdg-mime default google-chrome.desktop text/html
Then restart the computer (
sudo reboot). Check now if the
$BROWSER variable is OK by typing
Then now, when checking Firefox, it should says that the browser isn’t the default, and Google Chrome shouldn’t complain!
$ echo $BROWSER
BUT firefox still default
same on me firefox still default
I would also go through file association and set anything pointing at Firefox to Chrome (such as html and mhtml)
Your method worked on Lubuntu 20.04 Desktop!
Thanks a lot.
Wohoo! It works (:-) tvm
Brilliant all fixed, the annoying pop up has vanished and Chrome is the default Browser, Boom! Thanks for your help 🙂
Forgot to mention Im using Debian LXQt cheers Ben. 🙂