I am not quite sure, but suspect something like this can be used by
individual users to enable the bitcoin: protocol in iceweasel:


#!/bin/sh
# This shell script can be used to configure the "bitcoin://" URL handler
# for Gnome/Iceweasel

case "$1" in
  enable|'')
    gconftool-2 -t string -s /desktop/gnome/url-handlers/bitcoin/command 
"bitcoin-qt \"%s\""
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/bitcoin/enabled true
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/bitcoin/needs_terminal 
false 
    ;;
 disable)
    gconftool-2 -u /desktop/gnome/url-handlers/bitcoin --recursive-unset
    ;;
esac


It seem to work when I tested it.  The 'disable' part did not seem to
work, so I am a bit unsure if I was testing the right thing.  Anyway, I
do not know gconf, iceweasel and gnome enough to know how to set this
globally for all users.  Anyone know?


-- 
Happy hacking
Petter Reinholdtsen

Reply via email to