Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store Dat config data, secret keys, etc. in default platform folders #1093

Open
RangerMauve opened this issue Apr 3, 2019 · 1 comment
Open

Comments

@RangerMauve
Copy link
Contributor

As mentioned on IRC (thanks @da2x ), it'd be good for Dat to avoid putting folders into the home directory and to instead follow the standards used by other applications like XDG.

We could make use of the platform-folders module in order to move the dat secret keys and other relevant storage somewhere that makes sense for the user's OS.

Some considerations:

  • How will we migrate the data?
  • What names should we use across platforms?
  • Is this worth the breaking changes?

Also related to #1063

This will probably involve a change to dat-storage. Maybe we can have it search for ~/.dat as a fallback and create new keys in the appropriate dir.

@joehand
Copy link
Collaborator

joehand commented Apr 3, 2019

Also may look at https://github.com/sindresorhus/env-paths and https://github.com/sindresorhus/conf

@joehand joehand changed the title Change folder for storing dat data Store Dat config data, secret keys, etc. in default platform folders Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants