> > $ 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="[EMAIL PROTECTED]";
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; }}}

_______________________________________________
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to