Re: [Evolution] Selecting URLs when Mozilla is already launched



cheers();

I have set up Mozilla as my default browser in the Gnome Control Center.
If I click on a URL in a mail message when Mozilla is already launched,
instead of showing the URL in the existing Mozilla window, Evolution
tries to re-launch Mozilla, which fails because it is already launched.
Is there a way to get around this?

What version of Gnome?


Check your ~/.gnome/Gnome file. You need gnome-moz-remote instead of
mozilla. It should look like that:

[URL Handlers]
default-show=gnome-moz-remote --newwin "%s"


gnome-moz-remote %s
 will only open a new mozilla, when none running
 displays the URL in the current mozilla (old content overwritten)

gnome-moz-remote --newwin %s
 will only open a new mozilla, when none running
 displays the URL in a new mozilla window


I use the following default-show entry:

default-show=/home/guenther/bin/mozilla-remote "%s"

With the attached mozilla-remote script (must be executable) it acts
like the --newwin option, but displays the new URL in a new *tab* if
there is already a mozilla running.

I don't loose the displayed URL and can even click multiple URLs and see
them all in the same mozilla.

Hope that answers all your questions...

...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; }}}
#!/bin/sh

gnome-moz-remote --remote='openURL('$1', new-tab)' || gnome-moz-remote $1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]