command line select preferred browser

New to Debian (Or Linux in general)? Ask your questions here!

command line select preferred browser

Postby hthi » 2020-02-04 19:44

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.
hthi
 
Posts: 172
Joined: 2015-05-09 15:43

Re: command line select preferred browser

Postby sunrat » 2020-02-04 21:09

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
sunrat
 
Posts: 2998
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: command line select preferred browser

Postby Head_on_a_Stick » 2020-02-05 17:35

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.
User avatar
Head_on_a_Stick
 
Posts: 11448
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable