Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Change sensible-browser

Some of my apps use the script sensible-browser to open web pages. This script opens /etc/alternatives/gnome-www-browser or /etc/alternatives/x-www-browser. On my machine, these two are symbolic links to Google Chrome (which I rarely use). I want to use Firefox instead, so I made them into symbolic links to firefox.
Now if I use sensible-browser, Firefox is used. However, for some inexplicable reason the symbolic links are regularly reverted back to point to Google Chrome!

What is the correct way to change sensible-browser?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you want to change gnome-www-browser to point to say /usr/bin/firefox

You can do

sudo update-alternatives --set gnome-www-browser /usr/bin/firefox

Similarly you can do the same to the other one also i think.

Edit:

Or..

You can do

sudo update-alternatives --config gnome-www-browser

which gives a list of all the browsers to choose from, from which you can select one of them.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading