problem with bitcoin: URIs and command-line arguments (initial client startup) #2859

issue Diapolo opened this issue on July 25, 2013
  1. Diapolo commented at 12:31 PM on July 25, 2013: none

    I'm using command-line arguments to supply parameters to bitcoin-qt.exe during startup and one of the arguments is -txindex.

    Now when I start the client via clicking a bitcoin: URI (when the client is not running already), it will not pass ANY of my normal command-line arguments and just the URI, which leads (in this case) to the message that I need to reindex to change -txindex state, because of the missing -txindex. I can think of other arguments leading to unwanted or strange behaviour.

    Any ideas how we could handle the "client is started via bitcoin: URI"?

  2. gavinandresen commented at 12:30 AM on July 29, 2013: contributor

    I think the best we can do is recommend that people either:

    a) start up Bitcoin-Qt with the right arguments before clicking a bitcoin: URI and/or b) Prefer to put options in a bitcoin.conf file rather than specifying them on the command line

  3. Diapolo commented at 10:20 AM on July 29, 2013: none

    @gavinandresen Do you think a small dialog box (with the possibility to cancel startup), giving users the hint, that it's wise to start the client before using bitcoin: URIs would be worth to add to Bitcoin-Qt?

  4. gavinandresen commented at 11:12 AM on July 29, 2013: contributor

    @Diapolo : No. The number of users who modify their shortcut to add command-line arguments is vanishingly small; bothering EVERY user with another dialog box for that tiny minority is the wrong thing to do.

  5. Diapolo commented at 11:38 AM on July 29, 2013: none

    I'm not sure about that guess, at least Windows users are more familiar with adding stuff to a shortcut than working with a bitcoin.conf IMHO. That box should only show up, when the client is initially started via clicking a bitcoin: URI and can perhaps be restricted to Windows.

    There is no clean way currently to move command-line stuff to the .conf, so I was thinking about a solution which stores the last used command-line in our QSettings and uses this, if we detect a startup via clicking an URI...

  6. laanwj commented at 1:49 PM on July 29, 2013: member

    I agree with @gavinandresen. Especially now that it is possible to change the data directory without passing a command line argument, it should not be needed to pass anything on the command line. Everything can be set either in the options dialog or, if not, in bitcoin.conf.

  7. Diapolo commented at 2:07 PM on July 29, 2013: none

    Closing as non-issue then.

  8. Diapolo closed this on Jul 29, 2013

  9. IntegralTeam referenced this in commit 5e8ae2ceb6 on Jun 4, 2019
  10. MarcoFalke locked this on Sep 8, 2021

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-21 18:16 UTC

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