LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   To set specific version of firefox as default (https://www.linuxquestions.org/questions/linux-newbie-8/to-set-specific-version-of-firefox-as-default-4175448143/)

venu147 02-01-2013 06:29 AM

To set specific version of firefox as default
 
Hi,
I am working on vm setup which has firefox 3.0 set. As I need Selenium IDE, I installed firefox 14.0.

FYI: Selenium is a suite of tools specifically for automating web browsers.

firefox 3.0 installed in /usr/bin/firefox
firefox 14.0 installed (by me) in $HOMEDIR/firefox/firefox

I dont have root permissions to upgrade existing firefox.


Problem:
My code invokes firefox 3.0, I didnt mention about version in my code. How can i set firefox 14 as default firefox version.


I tried setting $HOMEDIR/firefox/firefox in PATH and tried "which firefox" but it still show path of firefox3.0

Snark1994 02-01-2013 07:22 AM

You'd need to put "$HOMEDIR/firefox/firefox" at the start of your path (or at least, before /usr/bin)

Alternatively, you can just run firefox using the full path in your code (i.e. "$HOMEDIR/firefox/firefox", rather than just "firefox")

Regards,

venu147 02-01-2013 07:28 AM

Yes, I tried that way putting my firefox path first. But it didnt work.
export PATH=/$HOMDIR/firefox/firefox:$PATH

John VV 02-01-2013 03:34 PM

venu147
FF14 ?

you are aware that the very first time you launch ff14 it will auto update and auto install ff 18.0.1

venu147 02-01-2013 11:34 PM

Hi,
I need to stay on ff less than ff18 as there are some error regarding "xre".

My problem is how to set my ff14 as default. Please share your suggestions if any.

Snark1994 02-02-2013 03:31 AM

Quote:

Originally Posted by venu147 (Post 4882217)
Yes, I tried that way putting my firefox path first. But it didnt work.
export PATH=/$HOMDIR/firefox/firefox:$PATH

That should be

Code:

export PATH=/$HOMEDIR/firefox:$PATH
AFAIK PATH contains directories, not files, and you typo'd on "HOMEDIR".

Regards,

John VV 02-02-2013 04:46 AM

Quote:

I need to stay on ff less than ff18 as there are some error regarding "xre".
check "about firefox under "help"

if you did not turn off auto update it is 18.0.1 now

in Firefox
edit / preferences / advanced
then the update tab , and turn it off
but if you are already 18 ......

venu147 02-06-2013 01:33 AM

Hi Snark1994,
Thanks for the response. I tried your solution but it didnt work.

Snark1994 02-07-2013 03:36 AM

Can you post the output of

Code:

echo $PATH
and

Code:

whereis firefox
please?

Thanks,

John VV 02-07-2013 03:14 PM

Quote:

Thanks for the response. I tried your solution but it didnt work.
what did not work

exporting the $PATH variable to the ff in your HOME folder will work

but you will need to do0 that EVERY time you want ff14 ( and turn off the auto update )
or the second time you launch ff14 it will be ff18.0.2
put the path to the ff14 ( insecure) in your ~/.bash_profile file
and it is not "HOMEDIR" it is "HOME"

PATH=$PATH:$HOME/bin
the /bin folder in your HOME folder should be already listed
place FF14 in there
~/bin/firefox ( "~/" IS "/home/YourUserName"
---- you need the full path---
Code:

PATH=$PATH:$HOME/bin:/home/YourUserName/bin/firefox

add "/home/YourUserName/bin/firefox"
to the path in ~/.bash_profile

then add LD_LIBRARY_PATH to the firfox folder and export that in the "~/.bash_profile"
and also add the "plugins" folder you MUST add by hand
or
use the very nice and handy "run-mozilla.sh" script to launch ff14
it is in the ff folder


All times are GMT -5. The time now is 02:56 PM.