command line select preferred browser

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
hthi
Posts: 175
Joined: 2015-05-09 15:43

command line select preferred browser

#1 Post by hthi »

debian 10

mate -> control center ->
preferred applications -> internet -> web browser

Some times pale moon is on the list. Sometimes not. Even
if pale moon is present and you select pale moon and set pale moon as the
default browser in pale moon's settings, then it does not work.

I found these commands
sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/palemoon 100
sudo update-alternatives --config x-www-browser

I have not tested the first command because I cannot understand it. There
is no /usr/bin/palemoon 100 file. Why is it palemoon 100?
Thanks.

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 3674
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 3 times
Been thanked: 5 times

Re: command line select preferred browser

#2 Post by sunrat »

man update-alternatives gives a decent rundown on its function. 100 is a priority rating.
To find where palemoon binary exists on your system:

Code: Select all

which palemoon
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Head_on_a_Stick
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: command line select preferred browser

#3 Post by Head_on_a_Stick »

Use galternatives to add new alternatives, the command line invocation can break your system if you get it wrong.

And edit ~/.config/mimeapps.list as well.

There is also ~/.config/xfce4/helpers.rc for the Xfce desktop, use the exo-preferred-applications utility to change that.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support

Post Reply