Author

Topic: Bitcoin custom URI integration with bitcoin-qt (Read 2387 times)

sr. member
Activity: 507
Merit: 253
Here's what to do for Firefox (source: http://electrum.org/bitcoin_URIs.html ):
Quote
Firefox (version 3.5 and above)
  • Visit about:config
  • Create a new boolean (mouse right click -> new -> boolean)
  • Enter this name: network.protocol-handler.expose.bitcoin
  • Select the value: false
  • Next time you click on a Bitcoin URI, a dialog will ask you to enter the path of your Bitcoin client. Make sure it is executable

Chrome:
To configure Chrome on Ubuntu 10.04 or maybe later versions to handle bitcoin URIs, do this first on the command-line:
$ gconftool-2 -t string -s /desktop/gnome/url-handlers/bitcoin/command "/path/to/electrum.py %s"
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/bitcoin/needs_terminal false
$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/bitcoin/enabled true
This tells Gnome what to do with bitcoin URLs, and Chrome picks that up from Gnome.
The site also has many good detailed descriptions of the Bitcoin custom URI protocol.
sr. member
Activity: 507
Merit: 253
Here's how to setup custom URI scheme in KDE, which can be modified for the Bitcoin scheme.

Here's what I have in my ~/.kde/share/kde4/services :
Code:
[Protocol]
exec=/usr/local/bin/bitcoin-qt "%u"
protocol=bitcoin
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false
, where "/usr/local/bin/bitcoin-qt" is your path to bitcoin-qt. This enables, e.g., Konquerer browser to open "bitcoin:
" links. I'm sure you could get Firefox linked up, too.
sr. member
Activity: 507
Merit: 253
From the URI Scheme Bitcoin wiki page, I found this: Spesmilo, which "supports all valid Bitcoin URIs, with Windows and KDE integration." But, then again, so does bitcoin-qt…
sr. member
Activity: 507
Merit: 253
BIP 0021 introduced the Bitcoin URI scheme:
Code:
bitcoin:
[?amount=][?label=
How do I integrate this into, e.g., the Firefox browser or KDE so they will open bitcoin-qt, as this says is possible?

thank you
Jump to: