On Wed, Dec 17, 2003 at 02:31:34AM -0500, Guy Rouillier wrote: > Todd Slater wrote: > >That choose profile is annoying. I use this script which I called > >/usr/bin/firebird to open links in a new tab. If you prefer, you can > >substitute new-window. Everything I use that launches URL's calls this > >script. > > Todd, I'm having trouble with the script below. I put in some echoes > and ran the script from a terminal, and here is what I see: > > (1) If neither Thunderbird nor Firebird is running, the script > successfully starts up Firebird and retrieves the target URL. > > (2) If *Thunderbird* is running the script thinks that Firebird is > running. I guess because they both use the Mozilla rendering engine? > > (3) If either Thunderbird or Firebird is already running, it goes into > the if case and prints out "Failed to send command." The target URL is > not retrieved.
Hmm, sorry about that, I don't use Thunderbird myself and I just assumed it would work. So much for the benefits of breaking Moz into components! How about trying this: /path/to/MozillaFirebird -remote "ping()" echo $? for each instance of 1. Firebird and Thunderbird not running (1) 2. Firebird only running (0) 3. Thunderbird only running (0) 4. Firebird and Thunderbird both running (0) My guesses of the results are in parentheses. If I'm right about #3 above, then maybe you could get around it by opening new-window instead of new-tab? Todd > >#/bin/bash > >browserPath="/usr/local/MozillaFirebird/MozillaFirebird" > >url="$@" > > > >$browserPath -remote "ping()" > > > ># $? = false if running, true if not > >if [ $? = 0 ] ; then > > exec $browserPath -remote openURL"($url,new-tab)" > >else > > $browserPath $url > >fi > >exit
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
