When selecting a custom data directory on first launch of Bitcoin Core GUI on Mac, where is that setting stored? #798

issue so7ow openend this issue on February 19, 2024
  1. so7ow commented at 6:16 pm on February 19, 2024: none
    • I still think this issue should be opened here

    Report

    When selecting a custom data directory on first launch of Bitcoin Core GUI on Mac, where is that setting stored?

    I’ve looked in ~/Library/Application\ Support/Bitcoin for bitcoin.conf and settings.json and in the selected custom location for those same files and I can’t locate where that configuration setting is stored.

  2. so7ow commented at 6:34 pm on February 19, 2024: none

    I believe I’ve located it:

    ~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist

  3. so7ow closed this on Feb 19, 2024

  4. so7ow commented at 6:45 pm on February 19, 2024: none
    I spoke too soon. When I delete that file, Bitcoin Core GUI still knows about the custom location I selected at first launch.
  5. so7ow reopened this on Feb 19, 2024

  6. so7ow renamed this:
    When selecting a custom location on first launch of Bitcoin Core GUI on Mac, where is that setting stored?
    When selecting a custom data directory on first launch of Bitcoin Core GUI on Mac, where is that setting stored?
    on Feb 19, 2024
  7. hebasto added the label Questions and Help on Feb 20, 2024
  8. hebasto commented at 10:47 am on February 20, 2024: member

    I believe I’ve located it:

    ~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist

    That’s correct. Also see https://github.com/bitcoin-core/gui/blob/master/doc/files.md#gui-settings.

    I spoke too soon. When I delete that file, Bitcoin Core GUI still knows about the custom location I selected at first launch.

    You have to invalidate the corresponding cache: https://stackoverflow.com/questions/19742452/qsettings-on-os-x-10-9-unable-to-locate-clear-it.

  9. so7ow commented at 2:16 pm on February 20, 2024: none

    Thank you! Confirmed this works:

    0rm ~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist
    1killall -u YourUserName cfprefsd
    
  10. so7ow closed this on Feb 20, 2024


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-22 21:20 UTC

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