on OSX, bitcoind chooses different data directory than Bitcoin-Qt #27119

issue pinheadmz openend this issue on February 17, 2023
  1. pinheadmz commented at 4:08 pm on February 17, 2023: member

    bitcoind uses ~/Library/Application Support/Bitcoin as base data directory path but Bitcoin-Qt uses ~/.bitcoin

    I actually much prefer the latter since it is more UNIX-like and I assume users running the daemon from the command line probably do as well. It might make sense if this behavior was swapped and the GUI chose the user-friendly library/support path, but my preference would be using ~/.bitcoin on OSX all the time.

    The issue most likely comes down to this logic in system.cpp:

    https://github.com/bitcoin/bitcoin/blob/fe1b3256888bd0e70d0c9655f565e139ec87b606/src/util/system.cpp#L859-L864

    … but I have no idea why Bitcoin-Qt would be compiled without the MAC_OSX flag while bitcoind would be. I confirmed the behavior building bitcoind and -Qt both from master and also by downloading the v24.0.1 GUI for OSX from bitcoincore.org

    It’s also possible that this issue only affects M1 (arm64) Macs like mine:

    0--> uname -a
    1Darwin   21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T8101 arm64
    
  2. pinheadmz added the label Bug on Feb 17, 2023
  3. willcl-ark commented at 4:58 pm on February 17, 2023: contributor
    FWIW I could not replicate this on my 2017 Intel MBP on master. Choosing “Use Default Datadir” on QT setup screen saw it use “Library/Application Support/Bitcoin” as the datadir.
  4. pinheadmz commented at 6:37 pm on February 17, 2023: member
    This is my fault, there were old Qt preferences saved and the custom directory was recalled from there
  5. pinheadmz closed this on Feb 17, 2023

  6. bitcoin locked this on Feb 17, 2024

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-09-28 22:12 UTC

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