Firefox 0.9 launcher script
I just upgraded from Firefox 0.8 to 0.9 on my Slackware 9.1 install, but suddenly my launcher scripts no longer work. I hate that user profile window thing so this is the script I was using to bypass it and create new instances in new tabs.
/usr/bin/mozilla-firefox -remote "openURL($@, new-tab)" || exec /usr/bin/mozilla-firefox "$@";
however, now when I run the script, I get the error
Error: No running window found
Even if I already have a Firefox window open. I've also tried this script.
import sys, os
if len(sys.argv) > 1:
URL = str(sys.argv)
URL = ""
a = os.popen("ps ax | grep firefox")
detect_fox = a.read()
if detect_fox.count("firefox-bin") > 0:
os.popen2("mozilla-firefox -remote 'openURL(" + URL + ",new-window)'")
os.popen2("mozilla-firefox " + URL)
But neither works correctly. Both will open a Firefox window if one is not open, but both fail if one is already open because they can't find the running window. Did they change something about the way the -remote flag works in 0.9? Has anyone found a working launch script?