datadir= doesn’t function in conf file (Qt GUI) #3905

issue darkhosis openend this issue on March 19, 2014
  1. darkhosis commented at 7:22 pm on March 19, 2014: none

    Could be Windows only. Had to add -datadir=a:\bitcoin to bitcoin-qt shortcut.

    It’s specified as:

    datadir=a:\bitcoin

    in the bitcoin.conf file.

  2. laanwj commented at 7:42 pm on March 19, 2014: member

    Yeah, this is no longer possible with the GUI in 0.9.0.

    Try command line option -choosedatadir to set the default data directory without having to change the shortcut. It will be stored in the registry.

  3. laanwj added the label GUI on Mar 19, 2014
  4. pmc01 commented at 8:11 pm on March 19, 2014: none
    Windows Bitcoin-QT ignores bitcoin.conf entirely, which is strange. Is this intentional?
  5. laanwj commented at 8:34 pm on March 19, 2014: member

    That’s not intentional. Also doesn’t match the behavior that I’ve seen.

    Which setting are you providing in bitcoin.conf that seems to be ignored?

    Have you changed the data directory? Are you providing any command line arguments? If so, which?

  6. pmc01 commented at 9:08 pm on March 19, 2014: none
    My mistake, I had bitcoin.conf in the old %appdata%\bitcoin location instead of the new datadir.
  7. laanwj added the label Bug on Mar 22, 2014
  8. darkhosis commented at 8:56 pm on March 24, 2014: none

    Yeah, I was just about to add that comment. It ignores my .conf file completely. I don’t run my bitcoin client here very often (flash drive, re: datadir, etc) but I also noticed it didn’t even use the par setting, maxconnections, addnodes, etc.

    ed: hmm, nm. no clue why it doesn’t work. it fails on reindex in .conf file too.

  9. laanwj commented at 6:42 am on March 25, 2014: member
    It expects the .conf file in your data directory. That never changed. If you change your data directory it expects the .conf file there, too.
  10. laanwj renamed this:
    datadir= doesn't function in conf file
    datadir= doesn't function in conf file (Qt GUI)
    on Mar 25, 2014
  11. laanwj referenced this in commit c61fe44194 on Mar 25, 2014
  12. laanwj commented at 9:19 am on March 25, 2014: member
    See #3935 (please help testing)
  13. pmc01 commented at 5:06 pm on March 25, 2014: none
    I tested #3935 and it does restore the ability to change the bitcoin-qt datadir in the .conf file, and allows the .conf file to be in a directory separate from the datadir.
  14. laanwj closed this on Mar 26, 2014

  15. MathyV referenced this in commit b1043fe2a7 on Oct 27, 2014
  16. DrahtBot 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: 2024-07-03 10:13 UTC

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