Problem launching firefox with script
I’m using the following to launch Firefox (in SuSE Linux 8.2):
if [ -f ~/.mozillarunning ]; then
if [ ! -z $1 ]; then
$REALPROGRAM -remote "openURL($1 , new-tab)"
$REALPROGRAM -remote "openURL(about:blank, new-tab)"
rm -f ~/.mozillarunning
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.