Setup Default Browser for Non-GUI Applications in Ubuntu Linux (x-www-browser)

KDE and Gnome provide GUI to setup the default browser in Ubuntu. However for the default browser settings to be accessible in bash scripts, a further step is required. That is to setup x-www-browser.

Set the default x-www-browser using the update-alternatives command.

sudo update-alternatives --config x-www-browser

Enter the number corresponding to the browser you want as your default browser.

default-x-www-browser

About Pratik Sinha

Linux Nerd, Socialist, Atheist, Adventuristic, Nature Lover, Geeky.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>