Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I’m using the following to launch Firefox (in SuSE Linux 8.2):
Quote:
#!/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.
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe