Registering web browser with update-alternatives

Nils Kassube kassube at gmx.net
Mon Dec 20 11:33:39 UTC 2010


Dotan Cohen wrote:
> Hi all, I need to set the default web browser on a Kubuntu 10.10
> install as a script in /home/user. How can I add that script, so that
> update-alternatives might let me use it? Thanks!

I'm not sure what you want to achieve. Do you want to use a script 
instead of the default system browser? If it is a system wide setting, 
it should be in a system directory, not in /home/user which is probably 
the home directory of one of the users on that machine. You'd better use 
/usr/local/bin instead. Otherwise the user might change the script after 
it is installed as the default browser. And that is probably not what 
the system administrator wants.

Anyway, according to the man page for update-alternatives, I would 
assume that you could add your script with a command like this:

sudo update-alternatives --set x-www-browser /usr/local/bin/myscript

Please note: I didn't test it, so it is up to you to check if it does 
what you want.


Nils




More information about the ubuntu-users mailing list