[21016] in Athena Bugs
Re: mozilla wrapper arg handling...
daemon@ATHENA.MIT.EDU (t. belton)
Mon Nov 4 14:04:33 2002
Date: Mon, 4 Nov 2002 14:00:48 -0500 (EST)
From: "t. belton" <tbelton@MIT.EDU>
To: John Hawkinson <jhawk@mit.edu>
cc: <bug-infoagents@mit.edu>
In-Reply-To: <200211032115.QAA12630@multics.mit.edu>
Message-ID: <Pine.GSO.4.33L.0211041338550.23371-100000@iphigenia.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
This is a case where I broke the advanced usage in order to try to get the
basic usage to do the expected thing. I'll see if I can find away to get
the full range of -remote commands to work right.
The comments in the wrapper are a little cryptic, so here's the gist:
When someone starts Mozilla by saying 'mozilla [url]', they want a Mozilla
window which shows them that URL. The idea was that they'd want this *even
if they had a Mozilla already running*. This was part of the
multiple-instance issues with Mozilla.
The way it is hacked right now, the user can say 'mozilla [url]' the first
time and get the expected behavior, and can then say 'mozilla [url]' AGAIN
and get a new Mozilla window with the new URL.
Needless to say, this requires secret munging to detect a running Mozilla
and translate that second command into 'mozilla -remote "openURL([url])"'
which is what is actually needed.
That munging is what has broken several of the other -remote commands.