I'm on 15.04 64 bit Lubuntu and I downloaded chrome from their website, because it can be useful at times, but I want to keep firefox as my default browser and despite having put it as default browser it still doesn't run when I execute x-www-browser
. I then manually put firefox as default using the update-alternatives
script, but what made me wonder was why chrome put itself at a priority of 200. I don't regard chrome as high as they do themselves, so how would I be able to change the priorities?
This is what I have now and firefox did indeed become my default application, but it shouldn't have, when I clearly put it as default in the firefox interface itself.
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/google-chrome-stable 200 auto mode
1 /usr/bin/chromium-browser 40 manual mode
* 2 /usr/bin/firefox 40 manual mode
3 /usr/bin/google-chrome-stable 200 manual mode
You can change the priority with:
Example:
before
after:
In short: edit /var/lib/dpkg/alternatives/x-www-browser and change priority inside
DETAILS
An easiest and the must answer is to edit the administrative update-alternative files found in the
/var/lib/dpkg/alternatives
So edit the
x-www-browser
fileThe output will be like this:
Now easily change the priority of chrome (200) by whatever you want then save. (I changed to 50)
check the new settings
I have qutebrowser installed to
~/.local/bin
which is on my$PATH
. I had put the full path to the executable, meaning I had to runinstead of using
qutebrowser
only as second-to-last argument (becauseupdate-alternatives
complained about the path not being absolute) thenEDIT: I'm on debian buster/sid, HTH anyways. EDIT2: Reasoning why I had to specify the full path to qutebrowser.