Re: [Evolution] Default Browser for Evolution



cheers();

But there still is a reason for a helping caller program: I have a small
perl script, so I get no new window but a new tab, when mozilla is
already running. :)

I've tried to make something similar but I'm pretty noobs to perl. I've
found how to send the new URL to another a new tabs instead than opening
a new window (it's a lot faster), but didn't know how to check if
mozilla is already running (in which case a new Moz window must be
instanced). Can you share your script? :-)

Of course, it's attached.

(Don't ask me about those parameters please, I stripped off all not
necessary from a python script, floating around some time.)

You have to change the line in .gnome/Gnome accordingly, so that script
is executed.
default-show=/home/YOU/bin/mozilla-remote "%s"

And some hint, as that was a problem before: Make the script executable.
Have mozilla and mozilla-moz-remote in your path... ;)


btw: You don't have to check, if mozilla is running. If you can't get
mozilla to open an new tab it is obviously not running...


BTW: we are going from Evo to Moz questions, so I'll stop posting on the
mailing list regarding this subject. 

Yeah, your right. But as this is an FAQ I still post the script to the
list. May some others use it too.

Have fun...

...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; }}}
#!/usr/bin/perl -w

my $url = shift;

system ("gnome-moz-remote --remote='openURL($url, new-tab)'")
    && system ("gnome-moz-remote $url");



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