How to set Google Chrome by default on Lubuntu 19.04

By | 3 June 2019

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:

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!

One thought on “How to set Google Chrome by default on Lubuntu 19.04

  1. Giovanni Barberi

    $ echo $BROWSER
    /usr/bin/google-chrome-stable

    BUT firefox still default

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.