bitcoin-core / gui

Bitcoin Core GUI staging repository

Home Page:https://github.com/bitcoin/bitcoin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

so7ow opened this issue · comments

Issues, reports or feature requests related to the GUI should be opened directly on the GUI repo

  • 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.

I believe I've located it:

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

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

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.

Thank you! Confirmed this works:

rm ~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist
killall -u YourUserName cfprefsd