Mozilla starting up new instances, locked profiles
Dan Sanderson
lists at dansanderson.com
Fri Jan 31 14:39:49 PST 2003
Hi all -
I installed Mozilla 1.2.1 on my RH8.0 machine using the Linux x86
binaries w/installer from mozilla.org. Whenever I try to start Mozilla
when Mozilla is already running (such as when using a Gnome toolbar
button I created, or double-clicking on HTML files in Nautilus), it
opens the Profile selector menu and won't let me choose the default
profile, because it is already in use.
So far, I've only been able to come up with a wrapper script solution to
this problem:
#!/bin/sh
HOMEPAGE="http://www.google.com/"
if /usr/bin/mozilla -remote "ping()"
then
if test -z $1
then
/usr/bin/mozilla -remote "openURL($HOMEPAGE, new-window)"
elif test -f $1
then
/usr/bin/mozilla -remote "openFile($1, new-window)"
else
/usr/bin/mozilla -remote "openURL($1, new-window)"
fi
else
/usr/bin/mozilla $*
fi
Is there a better, more standard way that I don't know about?
I find it odd that I have to do this because before I installed from the
Linux binary installer, I had installed Mozilla using RPMs (also from
mozilla.org), and it didn't have this problem. (I purged that
installation because it was crashing every time I tried to view Page
Source. Not sure why; the RPMs are oddly componentized, so maybe the
developer package that contained the source viewer was bad?)
Also interesting: Clicking on URLs in Evolution doesn't seem to have
this problem. I'm guessing that Evolution is smart enough to do what
the script above is doing. Indeed, Evolution wouldn't let me uninstall
two of the Mozilla 1.2.1 RPMs (mozilla-nspr-1.2.1-0_rh8 and
mozilla-nss-1.2.1-0_rh8). Is that a bad thing?
Thanks, all!
-- Dan
P.S.
http://www.mozilla.org/quality/browser/front-end/testcases/cmd-line/
http://www.mozilla.org/unix/remote.html
More information about the Linux
mailing list