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:
nano ~/.config/lxqt/session.conf
Change the BROWSER
variable to /usr/bin/google-chrome-stable
as shown below. Save the changes.

Type: sudo update-alternatives --config x-www-browser
then choose the /usr/bin/google-chrome-stable
entry in manual mode
(2
in the screenshot below).

Type: sudo update-alternatives --config gnome-www-browser
. Do the same as above.
Type the following commands:
1 2 3 4 |
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 echo $BROWSER
:

Then now, when checking Firefox, it should says that the browser isn’t the default, and Google Chrome shouldn’t complain!