LWN.net Logo

Bugs Abound

Bugs Abound

Posted Jun 17, 2004 18:29 UTC (Thu) by darknater (guest, #10224)
In reply to: Bugs Abound by tjw.org
Parent article: Mozilla Firefox 0.9 released

mozilla-xremote-client -a firefox "openurl($1,new-window)"

Should work


(Log in to post comments)

Bugs Abound

Posted Jun 18, 2004 13:39 UTC (Fri) by tjw.org (guest, #20716) [Link]

mozilla-xremote-client -a firefox "openurl($1,new-window)"

Should work
It does!

It is important to note that if there is a space between the parameters of the openURL() function, then it fails.

Example:
> ./mozilla-xremote-client -a firefox "openURL(google, new-window)"
./mozilla-xremote-client: Error: Failed to send command: 509 internal error

Here's the open bug for this problem:
Bug 246166

Bugs Abound

Posted Sep 10, 2004 4:00 UTC (Fri) by recbo (guest, #24624) [Link]

firefox 0.9.1+ thunderbird 0.6+

Spaces in openURL() params OK now, see below.

In debian, thunderbird is actually checking
/etc/alternatives/www-browser so I had to

ln -s /usr/local/bin/firefox /etc/alternatives/www-browser

as well as set the Tools Options HTML text
handler to the /usr/local/bin/firefox(ignored
for url passing).

_____________________________________________________________________

# ~/.thunderbird/default/gpdz162a.slt/prefs.js
user_pref("network.protocol-handler.app.http", "/usr/local/bin/firefox");

_____________________________________________________________________

#!/bin/sh
# /usr/local/bin/firefox

if [ -z "$1" ]
then /usr/local/firefox/run-mozilla.sh /usr/local/firefox/firefox &
else
/usr/local/firefox/mozilla-xremote-client -a firefox \
"openURL( $1, new-tab )" \ # new-tab
&& exit 0 \
|| /usr/local/firefox/firefox $1 & # new-window
fi

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds