PDA

View Full Version : how do I make firefox my default browser?



helios17
10-24-2004, 02:40 PM
This should be easy, but I have managed to make it not so. I use mozilla for my email client just because it handles our network mail so well, however; firefox is a better browser and I would like it to be my default. I have stabbed around a bit but cannot find out how to make this happen. Clicking a link in mozilla mail obviously opens the mozilla browser. How do I make it open firefox?
the obvious choice would be move to thunderbird, but we have encountered some problems with it and would really like to stay with mozilla mail. Evolution has seemed to get real buggy lately so this is not an option either.

thanx

helios

mzilikazi
10-24-2004, 08:27 PM
update-alternatives --config x-www-browser

helios17
10-24-2004, 08:37 PM
helios@helios:~$ su
Password:
root@helios:/home/helios# update-alternatives --config x-www-browser

There are 2 alternatives which provide `x-www-browser'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/mozilla
*+ 2 /usr/bin/konqueror

Press enter to keep the default , or type selection number: 1
Using `/usr/bin/mozilla' to provide `x-www-browser'.
root@helios:/home/helios# exit
exit
helios@helios:~$

As you can see, firefox is not listed in the choices. I do not want to go stabbing about in config files in which I know nothing about. Is there a file I must edit in order to see firefox as a choice? I did install firefox from tar.gz, downloaded from the mozilla.org website. It is of course installed in a firefox directory in my home directory /home/helios/firefox. I'm thinking that this might make a difference so I mention it now.

thanx

helios

scottknl
10-24-2004, 10:44 PM
If you look at the sym links in /etc/alternatives you will see that the sym link x-www-browser points to the selected default browser.

#>cd /etc/allternatives
#>la x-www-browser
lrwxrwxrwx 1 root root 24 Oct 24 14:24 x-www-browser -> /usr/bin/mozilla-firefox

To get this use the following commands
#>rm /etc/alternatives/x-www-browser
#>ln -s /usr/bin/mozilla-firefox /etc/alternatives/x-www-browser

As to how to add the default browser for the update-alternatives command, the file
/var/lib/dpkg/alternatives/x-www-browser

displays the following entries for me:
manual
/usr/bin/x-www-browser
x-www-browser.1.gz
/usr/share/man/man1/x-www-browser.1.gz

/usr/bin/mozilla
80
/usr/share/man/man1/mozilla.1.gz
/usr/bin/konqueror
100

/usr/bin/mozilla-firefox
70
/usr/share/man/man1/mozilla-firefox.1.gz

it looks like you would need to add the last 3 lines to your file (with modified paths) and then use the update-alternatives command.

I would guess that if you add packages such as firefox using apt-get, all this would be done automatically for you.

Hope this helps,
KS

helios17
10-24-2004, 11:44 PM
am off to give it a try now. I sincerely thank you for taking the time and having the patience to assist me.

again thanx

helios