Bitcoin Forum
April 19, 2024, 07:05:53 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin custom URI integration with bitcoin-qt  (Read 2369 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 502
Merit: 251


View Profile WWW
April 25, 2013, 05:01:47 PM
Last edit: April 26, 2013, 01:29:01 AM by Geremia
 #1

BIP 0021 introduced the Bitcoin URI scheme:
Code:
bitcoin:<address>[?amount=<amount>][?label=<label>][?message=<message>]
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

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
1713553553
Hero Member
*
Offline Offline

Posts: 1713553553

View Profile Personal Message (Offline)

Ignore
1713553553
Reply with quote  #2

1713553553
Report to moderator
1713553553
Hero Member
*
Offline Offline

Posts: 1713553553

View Profile Personal Message (Offline)

Ignore
1713553553
Reply with quote  #2

1713553553
Report to moderator
1713553553
Hero Member
*
Offline Offline

Posts: 1713553553

View Profile Personal Message (Offline)

Ignore
1713553553
Reply with quote  #2

1713553553
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 502
Merit: 251


View Profile WWW
April 25, 2013, 10:03:34 PM
 #2

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…

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 502
Merit: 251


View Profile WWW
April 25, 2013, 11:20:48 PM
Last edit: April 26, 2013, 01:03:05 AM by Geremia
 #3

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:<address>" links. I'm sure you could get Firefox linked up, too.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 502
Merit: 251


View Profile WWW
April 26, 2013, 01:28:39 AM
 #4

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 -&gt; new -&gt; 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.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!