cheers( again ); > 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...
Uh, must have not enough coffee, when I was coding that. Why bringing up the big perl, when a lightweight bash is sufficient... :-/ The same functionality attached, but even smaller. ;) ...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