On Vi, 13 iun 14, 04:38:16, Rusi Mody wrote: > > The way I do it, every time apt 'upgrades' iceweasel I run the > following script. > > Assumes firefox (direct download) is in /opt/firefox > > ------------------ > $ cat bin/firefox-afterUpgrade > # replace iceweasel by forefox > # should be run after an iceweasel upgrade > # from http://techpatterns.com/forums/about1435.html > # Assuming downloaded into /opt > > # Only needs to be done once -- the first time > > mv /usr/bin/firefox /usr/bin/firefox-iw ## just in case you still need iw > ln -s /opt/firefox/firefox /usr/bin/firefox > > The (small) downside I know is that you will see some diversion > warnings on upgrades that upgrade iw
Might I suggest not touching the installed iceweasel and just ln -s /opt/firefox/firefox /home/<your-user>/bin/firefox Because of this snippet in ~/.profile it will have the same effect, but won't be overwritten on upgrades: # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi Of course, you also have to make sure ~/.profile is sourced by your DM, otherwise you need to echo '. ~/.profile' >> .xsessionrc Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt
signature.asc
Description: Digital signature