Mozilla starting up new instances, locked profiles

Evan Martin martine at cs.washington.edu
Fri Jan 31 19:03:14 PST 2003


On Fri, Jan 31, 2003 at 02:39:49PM -0800, Dan Sanderson wrote:
> 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.

I use this, which is a bit simpler, as "phoenix-remote".  I then point
my phoenix launcher and my URL launcher at this script.

#!/bin/bash
 
if [ "$1" == "" ]; then
        phoenix -remote "xfeDoCommand(openBrowser)" || phoenix
else
        phoenix -remote "openURL(\"$1\", new-window)" || phoenix "$1"
fi

(Where "phoenix" is more or less equivalent to mozilla.)

Evolution likely uses the GNOME internal URL-spawn function, which calls
through to the GNOME-configured URL-spawner, which defaults to
gnome-moz-remote, which likely uses a similar interface to Mozilla (IPC
via X settings or something magical like that) but through C.

Even more annoying is that different browsers require different levels
of quoting.  Here's a list I use in some of my code:

char *spawn_commands[] = {
    "mozilla -remote 'openURL(%s, new-window)' || mozilla %s",
    "phoenix -remote 'openURL(%s, new-window)' || phoenix %s",
    "gnome-moz-remote --newwin \"%s\"",
    "galeon \"%s\"", /* galeon is clearly the smartest one here,
                        because it doesn't need shell trickery to DWIM. */
    "netscape -remote 'openURL(%s, new-window)' || netscape %s",
    "opera -remote 'openURL(%s,new-window)' || opera %s", /* note no
space */
    NULL
};


-- 
      Evan Martin
martine at cs.washington.edu
  http://neugierig.org


More information about the Linux mailing list