Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

Where should Dsafio store data? #19

Closed
2 tasks done
joeljuca opened this issue Sep 20, 2017 · 2 comments
Closed
2 tasks done

Where should Dsafio store data? #19

joeljuca opened this issue Sep 20, 2017 · 2 comments

Comments

@joeljuca
Copy link
Member

joeljuca commented Sep 20, 2017

We'll need to handle multiple types of data. More specifically, configurations, state, and cache. We'll also need to follow best practices of supported operating systems (currently, Linux and macOS).

  • Linux
  • macOS
@joeljuca joeljuca changed the title Where should Dsafio store config, cache and data? Where should Dsafio store config, cache and state? Sep 20, 2017
@joeljuca joeljuca changed the title Where should Dsafio store config, cache and state? Where should Dsafio store data (cache, config, state)? Sep 20, 2017
@joeljuca joeljuca changed the title Where should Dsafio store data (cache, config, state)? Where should Dsafio store data? Sep 20, 2017
@joeljuca
Copy link
Member Author

joeljuca commented Sep 20, 2017

According to the XDG Base Directory Specification (useful discussion on Ask Ubuntu), these data should go in the following directories:

  • ~/.cache for cache
  • ~/.config for configuration
  • ~/.local/share for data

PS: huge thanks to @thmzlt for pointing me in the right direction! 👏

@joeljuca
Copy link
Member Author

For now, I'll stick with the XDG spec for both Linux and macOS. If a change to a specific organization for macOS shows necessary an issue can be created in future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant