[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help installing an "alternative"



Chris wrote:
On Fri, 09 Apr 2010 04:40:12 +0200
godo <goran@dobosevic.com> wrote:

Ron Johnson wrote:
Hi,

I just locally installed upstream firefox, and of course Debian Alternatives doesn't know about it, so Iceweasel, which uses x-www-browser loads iceape, which I don't want.

"update-alternatives --install" seems to be what I want in order to
add /usr/local/firefox/firefox to the x-www-browser list, but can't
get it to work.

# update-alternatives --install x-www-browser firefox \
                                       /usr/local/firefox/firefox 3
update-alternatives: error: alternative link is not absolute as it should be: x-www-browser

What am I doing wrong?

TIA

I think I got it.

update-alternatives --install /usr/bin/x-www-browser x-www-browser /home/my_username/.firefox/firefox 3

I didn't got any error.


Wouldn't it be better if the syntax was this:

update-alternatives --install /usr/bin/x-www-browser
x-www-browser /opt/firefox/firefox 3

Of course, this would be making use of /opt for what it was
originally intended, for all the software and add-on packages that are
not part of the default installation.

Reference points:
http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html
http://wiki.debian.org/FilesystemHierarchyStandard



Sure it will be better, but I do not intend to keep long Firefox. For few days /home/ would be ok.

In any case thanks for tip.
--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
 English: www.dobosevic.com/en/
Registered Linux User #503414


Reply to: