1

I am trying to run sudo and set the default browser. I want to set chromium as my default browser. I have tried

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

This shows chrome as my default browser. However when I run in sudo mode and try to use grunt , it keeps using firefox as the default browser. Without sudo it goes back to google chrome. What am I doing wrong?

1

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo update-alternatives --get-selections

enter image description here

Find out what is set as the x-www-browser, it will probably be Firefox, then do this:

sudo rm /etc/alternatives/x-www-browser

enter image description here

sudo ln -s /usr/bin/chromium-browser /etc/alternatives/x-www-browser 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.