Re: gnome-moz-remote misses open Mozilla window
guenther <[email protected]>
| Newsgroups | gmane.comp.gnome.ximian.user |
|---|---|
| Message-ID | <1082830059.11560.107.camel@delta> |
On Tue, 2004-02-17 at 00:53, David Vergin wrote:
> I finally got around to applying guenther's oft-repeated solution to
> make clicking on a url in Evolution open a new tab in an existing
> Mozilla window -- but no joy. I have Evolution 1.2.2 under KDE3.1/RH9.0.
>
> I have traced the problem back and can illustrate it with the following
> transcript (executed in an xterm under KDE3.1 with Mozilla 1.2.1
> running):
>
> <transcript>
> $ gnome-moz-remote --remote='openURL('http://google.com', new-tab)'
>
> Gnome-CRITICAL **: file gnome-moz-remote.c: line 645
> (mozilla_remote_commands): assertion `window != 0' failed.
> </transcript>
>
> I understand the guenther's discussion at
> http://lists.ximian.com/archives/public/evolution/2003-August/032118.html
> which explains that this error is normal (and harmless) if Mozilla is
> not running.
>
> But In my case, Mozilla 1.2.1 *is* running.
>
> Not surprisingly, after emitting the above complaint, guenther's
> mozilla-remote.sh always brings up a new Mozilla window. It never opens
> a new tab in the existing Mozilla window.
Well, which version of my script are you using? Latest version is
attached.
For debugging, start running the line calling mozilla in a terminal and
do not use the script.
> Why is gnome-moz-remote not recognizing the open instance of Mozilla and
> what can I do to remedy this?
You don't need gnome-moz-remote, as you can call mozilla directly.
HTH. Let us know about your progress...
...guenther
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
mozilla-remote.sh
(text/x-sh, 68 B)
#!/bin/sh
mozilla -remote 'openURL('$1', new-tab)' || mozilla $1 &