By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,444 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,444 IT Pros & Developers. It's quick & easy.

My firefox script

P: n/a
Hi. I use mozilla firefox on linux. It's a great browser, but the *nix
version has an annoying problem, that it won't let you open a new instance
from the desktop if the browser is already running.

So, in my amateurish way I wrote a little script to fix that. Here it
#! /usr/bin/python

import sys, os

if len(sys.argv) > 1:
URL = str(sys.argv[1])
URL = ""

a = os.popen("ps ax |grep firefox")

detect_fox =

if detect_fox.count("firefox-bin") > 0:
os.popen2("firefox -remote 'openURL(" + URL + ",new-window)'")
os.popen2("firefox " + URL)
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.