Netscape as default browser (was: Re: [Evolution] Improper Mozilla start after 1.43 upgrade)



#!/bin/sh
gnome-moz-remote --remote='openURL('$1', new-tab)' || gnome-moz-remote $1

Can this script be customized for Netscape 7.1?  For the past couple of 
months, I've been searching for a way to use Netscape w/ Evo instead of 
Mozilla.  Netscape is set as "default", but I need to know how to make a new 
window or tab open while one window or tab is already open.

I'm pretty sure, this can be rewritten for Netscape. I do not use
Netscape though, and therefore I cannot test this script.


I already modified the mozilla-remote.sh script for a guy, who appears
to have a disfunctional gnome-moz-remote -- I called the mozilla binary
directly (which had some slight disadvantages but does no harm), instead
of the gnome remote.

The following script uses the mozilla binary to open the link in a new
tab, if mozilla already running:

--- snipp --
#!/bin/sh
mozilla -remote 'openURL('$1', new-tab)' || mozilla $1 &
--- snipp ---


Now, as Netscape and Mozilla are very similar, I assume substituting
netscape for mozilla in the above script should do it.

Save the resulting script as netscape-remote.sh in your path and set the
executable right (for you).

HTH

...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; }}}




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