OSX Uninstaller (which can also delete blockchain data) #11959

issue Sjors opened this issue on December 20, 2017
  1. Sjors commented at 12:30 PM on December 20, 2017: member

    Sister ticket for #993 Windows.

    For reasons I can't wrap my around there's doesn't seem to be a way for OSX applications to clean up after themselves after a user drags them into the trash can.

    One workaround could be for QT to check if ~/Application Support/Bitcoin already exists. If not, it would store the blockchain and other non-wallet data in the application package itself and put a symlink in ~/Application Support/Bitcoin so Bitcoind can find it. This might be quite brittle though.

    Another approach is to put an uninstall button inside QT, somewhere in the settings. This would work for Linux as well. In Windows it would just launch the standalone uninstaller. The uninstall button would have a check box:

    "Do you want to delete the blockchain data? [x GB]", checked by default

    In addition it would say: "your wallet will remain in [PATH]" and will be used again if you decide to reinstall in the future.

  2. fanquake added the label MacOSX on Dec 20, 2017
  3. jonasschnelli commented at 6:35 PM on December 20, 2017: contributor

    [...] in the application package itself [...]

    I wouldn't do that. Applications are stored in the non-user space while the library is in the user space.

    Another approach is to put an uninstall button inside QT, somewhere in the settings. This would work for Linux as well. In Windows it would just launch the standalone uninstaller. The uninstall button would have a check box.

    Hmm.. pretty uncommon for macOS applications.

    IIRC, OSX does now auto-detect related data files when you delete an application. Someone should look up the apple developer docs what recommendation are made there.

  4. Varunram commented at 11:36 AM on December 21, 2017: contributor

    I think the common Mac app practice is to leave the files in Application Support / as is, even when the user drags them into the trash can. This is because in case the user decides to put it back in (if they deleted by mistake) , stuff works "as expected". The uninstall button sounds like a nice option, and users can choose to keep the chain in case they decide to install again.

  5. jarolrod commented at 2:19 AM on April 12, 2022: member

    I think the OSX philosophy is to leave files as is so that if a user ever wants to reinstall, these important files are there again. In terms of Bitcoin Core as a GUI app, I'd rather not include such an option in settings; to prevent foot gunning, you leave your laptop open and someone quickly deletes your blockchain data pranks :).

    I think this issue can be closed.

  6. bitcoin deleted a comment on Apr 12, 2022
  7. fanquake closed this on Aug 5, 2022

  8. bitcoin locked this on Aug 5, 2023

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-14 09:15 UTC

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