Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

command line select preferred browser

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

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
Administrator
Administrator
Posts: 6494
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 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: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

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.
deadbang

Post Reply