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

Re: Need help installing an "alternative"



On 2010-04-08 20:38, Cameron Hutchison wrote:
Ron Johnson <ron.l.johnson@cox.net> writes:

# 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?

The easiest way to see how this stuff works is to look at a postinst
script that already does it. Pick an existing alternative and look at
/var/lib/dpkg/info/$PACKAGE.postinst.

Excellent idea.

I think you want this:

# update-alternatives --install x-www-browser /usr/bin/x-www-browser \
	/usr/local/firefox/firefox 3

That sets up /usr/local/firefox/firefox as an alternative for
/usr/sbin/x-www-browser .


Unfortunately, that's wrong. Peeking into iceape-browser.postinst, though, gave me the answer.

--
Dissent is patriotic, remember?


Reply to: