Cannot open firefox from link if it is already running

Chris Kacoroski kacoroski at comcast.net
Wed Sep 8 07:21:56 CEST 2004


Great,

I am using Debian and it installs that script, so I did not have to 
think about it.

cheers,

ski

Bob Snyder wrote:
> Okay, I've got it fixed. Chris, the three lines that you supplied need 
> the name of the script that in turn passes the URL to firefox, not 
> firefox directly. In my case I called the script firefox_link. Here's 
> the script:
> 
> #!/bin/sh
> export MOZILLA_FIVE_HOME="/usr/local/firefox/firefox-installer"
> 
> url="$1"
> if [ "x$url" = "x" ]; then
> url="about:blank"
> fi
> 
> if $MOZILLA_FIVE_HOME/mozilla-xremote-client -a firefox 
> openURL\("$url",new-tab\); then
> exit 0
> fi
> exec $MOZILLA_FIVE_HOME/firefox "$url"
> 
> 
> And here's the lines I added prefs.js:
> 
> user_pref("network.protocol-handler.app.http","/usr/local/bin/firefox_link"); 
> 
> user_pref("network.protocol-handler.app.https","/usr/local/bin/firefox_link"); 
> 
> user_pref("network.protocol-handler.app.ftp","/usr/local/bin/firefox_link"); 
> 
> 
> Thanks for the help, I hope this isn't so far off topic that others 
> won't find it useful.
> 
> Bob S.
> 
> 
> Bob Snyder wrote:
> 
>> Hi Chris and Brian,
>>
>> You are correct about editing prefs.js. I had originally tried it the 
>> way you suggest and was misled by the fact that thunderbird re-orders 
>> the entries in the file so my additions were moved to the middle of 
>> the file from the end leading me to believe that they were not there 
>> after running the app.
>>
>> However, the problem persists. Thunderbird reads the page, writes it 
>> to a temp file, and passes the filename to the script.
>>
>> Bob S.
>>
>> Chris Kacoroski wrote:
>>
>>>
>>> Brian J. Tarricone wrote:
>>>
>>>> Bob Snyder wrote:
>>>>
>>>>> My installation (in an older slack distro) of thunderbird 0.7.3 has 
>>>>> no /usr/lib/mozilla-anything directory. No prefs.js under the 
>>>>> thunderbird installation directory (/usr/local/thunderbird). I 
>>>>> tried adding it to ~/.thunderbird/default/xxx.slt/prefs.js, but 
>>>>> thunderbird overwrites this. Tried user.js in the same directory, 
>>>>> but no joy.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> it won't overwrite it if you add it while thunderbird isn't running 
>>>> ^_~.
>>>>
>>>
>>> Bob,
>>>
>>> Brian is right.  Stop thunderbird and make the changes.  let me know 
>>> if it works.
>>>
>>> ski
>>>
>>
>> _______________________________________________
>> Xfce mailing list
>> Xfce at xfce.org
>> http://lunar-linux.org/mailman/listinfo/xfce
>> http://www.xfce.org
> 
> 
> 
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce
> http://www.xfce.org
> 

-- 
"When we try to pick out anything by itself, we find it
  connected to the entire universe"            John Muir

Chris "Ski" Kacoroski, kacoroski at comcast.net, 435-681-0092



More information about the Xfce mailing list