Re: [Evolution] Default Browser
- From: guenther <guenther rudersport de>
- To: peter milne <peter milneweb com>
- Cc: evolution lists ximian com
- Subject: Re: [Evolution] Default Browser
- Date: Sat, 30 Aug 2003 05:38:52 +0200
$ gconftool-2 --set --type=string /desktop/gnome/url-handlers/unknown/command 'firebird %s'
$ gconftool-2 --set --type=bool /desktop/gnome/url-handlers/unknown/need-terminal false
$ gconftool-2 --set --type=bool /desktop/gnome/url-handlers/unknown/enabled true
Great job Guenther!
Now....it wants to open a new instance of the browser, which asks what
settings to use and such. Is it possible to make it open Firebird in a
new tab or new window instead of a new instance?
Yep. Firebird understands the remote commands. A script very similar
like the ones I posted more than once will do it:
--- firebird-remote.sh ---
#!/bin/sh
firebird -remote 'openURL('$1', new-tab)' || firebird $1 &
--- end ---
Make sure, you have the 'firebird' executable in your path (or adjust
the script). Also, make sure you have the 'firebird-remote.sh' script in
your path and set executable rights.
Adjust the GConf settings, to call the script:
$ gconftool-2 --set --type=string /desktop/gnome/url-handlers/unknown/command 'firebird-remote.sh %s'
...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]