Re: [SLUG] Mozilla Profile Problem

From: Brian Coyle (brian@linuxwidows.com)
Date: Fri Dec 27 2002 - 23:51:50 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 27 December 2002 23:06, Brian Coyle wrote:

> On Friday 27 December 2002 22:26, Doug Koobs wrote:
> > I'm running Mandrake 9, with Mozilla 1.2.1. I can open one instance of
> > it with no problem. However, when I go to open another instance of it
> > (using a shortcut I created on the "quicklaunch" bar) the Mozilla
> > Profile Manager pops up, asking to select a profile. There is only one
> > there, and when I select it, and press "Start Mozilla" I get an error:
>
> If you already have an instance open, just hit Ctrl+N (or File | New |
> Navigator Window) to get the next.
>

Nothing like responding to my own post... :p But, you got me
thinking- I've been known to absentmindedly hit the taskbar icon instead of
Ctrl+N on many occasions. I'd like to fit this myself, so I dug around
and found this:

   http://www.mozilla.org/unix/remote.html

It looks like we can hack the start up script (/usr/local/mozilla/mozilla)
to do something like this:

    mozilla -remote "openUrl(http://your.home.page, new-window)"
    if [ "$?" -eq 2 ] then mozilla

The -remote option doesn't work if there isn't an instance already running,
but luckily it sets the return value so we can just start a new copy...

HMM. I'm gonna have to try and get this working when I get a few minutes
of free time.

- --
Redundancy? You can say that again!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Brian Coyle, GCIA http://www.giac.org/GCIA.php

iD8DBQE+DS3nER3MuHUncBsRAosDAKCCEhgnOuUAtlSATEOFCs2m45p8rQCfQZKA
E+IHvkhIqW3k/2RRuM99Shw=
=+lj3
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:55:59 EDT