Lior Kesos wrote:

> [EMAIL PROTECTED] wrote:
>
>>
>> Have you reportted to Bugzilla that the bug is not resolved?
>>
> No, but I contacted darin fisher which wrote the script.
> He/She(?) told me that using Firebird 0.7 isn't enough and that I need to a 0.7 nightly build.
> So I went and downloaded the firebird nightly build and with the script refrenced before and thunderbird-0.4 - it finally works!
> So I'm a much more relaxed and happy *bird user now my main itch has been scratched .
>



Fun indeed. Here's a little enhancment tip for all the now-happier-*Bird users.


The suggested script in bugzilla always replaces the currently-focused URL with the URL you're opening. If you want to open a new tab or a new window instead, use the following:



#!/bin/sh

MODE_DEFAULT=new-window
#MODE_DEFAULT=new-tab

export MOZILLA_FIVE_HOME=/home/alon/bin/MozillaFirebird
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME

# get URL to load
url=$1; [ -z $url ] && url=about:blank
fbmode=$2; [ -z $fbmode ] && fbmode=MODE_DEFAULT

# try xremote first
$MOZILLA_FIVE_HOME/mozilla-xremote-client openURL\($url,$fbmode\) && exit 0

# if xremote failed, then launch the browser
exec $MOZILLA_FIVE_HOME/MozillaFirebird "$url"



This is a modified version of the script from bugzilla. It takes a second argument for the way to open the new URL -- new-window will open in a new window, and new-tab will open in a new tab. If only a URL is given (that is no 2nd argument), then the value if MODE_DEFAULT is used -- select which one you prefer. Note that you have to give either a URL and an open mode, or only a URL.
Naturally the 2nd argument will be ignored if Firebird is not opened when the script runs.



Have fun.


Alon.



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to