Results 1 to 2 of 2
I’m using the following to launch Firefox (in SuSE Linux 8.2):
#!/bin/bash
REALPROGRAM=/opt/firefox/firefoxOLD
if [ -f ~/.mozillarunning ]; then
if [ ! -z $1 ]; then
$REALPROGRAM -remote "openURL($1 , ...
- 02-19-2004 #1
Problem launching firefox with script
I’m using the following to launch Firefox (in SuSE Linux 8.2):
#!/bin/bash
REALPROGRAM=/opt/firefox/firefoxOLD
if [ -f ~/.mozillarunning ]; then
if [ ! -z $1 ]; then
$REALPROGRAM -remote "openURL($1 , new-tab)"
else
$REALPROGRAM -remote "openURL(about:blank, new-tab)"
fi
else
touch ~/.mozillarunning
$REALPROGRAM $1
rm -f ~/.mozillarunning
fi
Where I’ve renamed the original firefox script to firefoxOLD.
For those who aren’t aware, this script checks to see if Firefox is running, if it is then it simply opens a new-tab in the already running window, otherwise it opens a whole new window altogether (instead of the annoying ‘manage profile’ window showing up).
This worked perfectly up till a few days ago. Then, while firefox was open my system froze (not because of firefox). Since rebooting every time I try to run the script I get the error message ‘No open window found’ and nothing loads.
If I run Firefox from the original script (firefoxOLD) and then run the above firefox script it opens a new tab perfectly fine, bit the new script will no longer launch firefox in the first place.
It seems that the new script thinks that firefox is already running (when it is not) and tries to open a new tab all the time.
- 02-20-2004 #2


Reply With Quote
