gui: setting to make us default URI handler #17734

issue Sjors opened this issue on December 12, 2019
  1. Sjors commented at 2:05 PM on December 12, 2019: member

    Bitcoin Core makes itself the default handler for BIP21 style bitcoin:... URIs. Other wallets also do this, so the default wallet often depends on whatever the user installed most recently.

    In macOS the only way to change this setting is to edit a plist file (to org.bitcoin.BitcoinPayment, requires reboot) or run some freeware program to do it. I don't know the situation on other operating systems.

    We should add a button to the settings screen to make Bitcoin Core the default URI handler.

  2. Sjors added the label Feature on Dec 12, 2019
  3. fanquake added the label GUI on Dec 12, 2019
  4. laanwj commented at 11:00 AM on December 15, 2019: member

    Concept ACK, though this is going to bring in a lot of platform-specific code.

    FYI I think this is what sets the handler on Windows (part of the installer https://github.com/bitcoin/bitcoin/blob/master/share/setup.nsi.in ):

        WriteRegStr HKCR "@PACKAGE_TARNAME@" "URL Protocol" ""
        WriteRegStr HKCR "@PACKAGE_TARNAME@" "" "URL:Bitcoin"
        WriteRegStr HKCR "@PACKAGE_TARNAME@\DefaultIcon" "" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@
        WriteRegStr HKCR "@PACKAGE_TARNAME@\shell\open\command" "" '"$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "%1"'
    

    I'm pretty sure it's possible to do this in the application instead, as many windows programs (at least historically) did this.

    For Linux I don't think registering a protocol handler as a user/application is possible in general. If done at all, it's usually part of distribution packaging.

  5. fanquake commented at 12:29 PM on August 10, 2020: member

    I've moved this to the GUI repo: https://github.com/bitcoin-core/gui/issues/51.

  6. fanquake closed this on Aug 10, 2020

  7. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 09:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me