LWN.net Logo

Bugs Abound

Bugs Abound

Posted Jun 15, 2004 19:15 UTC (Tue) by tjw.org (guest, #20716)
Parent article: Mozilla Firefox 0.9 released


I too am sticking with 0.8.

The '-remote' flag can't find the any running instances of firefox. I
think this has to do with the fact that the ~/.phoenix directory is no longer used, but instead BOTH ~/.mozilla and ~/.firefox are used (possibly not intended). This is the show stopper for me since I can't use my handy /usr/local/bin/firefox script anymore:

#!/bin/sh
cd /usr/local/firefox && (./firefox -remote "openURL($1, new-window)" || ./firefox $@)


(Log in to post comments)

Bugs Abound

Posted Jun 16, 2004 5:13 UTC (Wed) by darthmdh (guest, #8032) [Link]

The ~/.phoenix directory isn't used in 0.8 either (it was thrown out in 0.7 iirc). Using both ~/.firefox and ~/.mozilla is kinda irritating though (bugged me since ~/.phonix was removed). Note that it doesn't actually do much in the ~/.mozilla dir - it's probably some leftover crud from the mozilla stuff.

Remoting doesn't work for me in the 0.9-rc either - so it's probably a new bug. (Note - you don't need your own script, the stock firebird script will do it for you)

Bugs Abound

Posted Jun 16, 2004 14:29 UTC (Wed) by jamesh (subscriber, #1159) [Link]

Firefox 0.8 used the ~/.phoenix subdirectory for data such as profiles, according to the release notes (see the "Uninstalling Firefox" section about the directory it creates). In this respect, it is the same as previous releases.

Firefox 0.9 uses the ~/.mozilla/firefox directory to store data according to its release notes (see the "Changes You Should Be Aware Of" section). It does mention that some intermediate builds used ~/.firefox which is why you might have a directory by that name on your system. It says that if you update the profiles.ini file appropriately you can move the profile over to ~/.mozilla/firefox though, if you want to get rid of that directory.

Bugs Abound

Posted Jun 16, 2004 15:10 UTC (Wed) by tjw.org (guest, #20716) [Link]

Yes, I'm positive that 0.8 uses ~/.phoenix, but what I didn't realize was that it too creates an empty ~/.mozilla directory.

Also, it looks as though you are correct about the ~/.firefox directory being created by the rc build since I can't get 0.9 to re-create it.

However, I'm still convinced that all this dir switching is the root of this bug because when I strace a 'firefox -remote' command with 0.9 it is still looking for ~/.firefox for the profile instead of ~/.mozilla/firefox.

QED

Bugs Abound

Posted Jun 16, 2004 19:36 UTC (Wed) by tjw.org (guest, #20716) [Link]


Just figured this out.

I had to edit the firefox/firefox shell script to change:

MOZ_USER_DIR=".firefox"

to:

MOZ_USER_DIR=".mozilla/firefox"

Now the -remote flag works.

Bugs Abound

Posted Jun 17, 2004 14:27 UTC (Thu) by papabean (guest, #22389) [Link]

Was that the only change you had to make? I still can't get the -remote to work.

Bugs Abound

Posted Jun 17, 2004 16:11 UTC (Thu) by tjw.org (guest, #20716) [Link]

I guess I jumped to conclusions because -remote still doesn't work for me either.

Bugs Abound

Posted Jun 17, 2004 16:15 UTC (Thu) by tjw.org (guest, #20716) [Link]

(Note - you don't need your own script, the stock firebird script will do it for you)
I tested this, and it doesn't appear to be true.

Sure the stock firebird script seems to open up a new firefox window, but it does not work if you provide a URL (at least not with 0.8 and obviously not with 0.9)

To test try running the following commands:
firefox &
firefox http://www.google.com

When I do this I get prompted with the dialog to create a new profile. Using my one line shell script it works.

Bugs Abound

Posted Jun 17, 2004 18:29 UTC (Thu) by darknater (guest, #10224) [Link]

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

Should work

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