Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Follow XDG Base Directory Specification more closely #41

Open
iamthad opened this issue Dec 5, 2016 · 1 comment
Open

Follow XDG Base Directory Specification more closely #41

iamthad opened this issue Dec 5, 2016 · 1 comment

Comments

@iamthad
Copy link

iamthad commented Dec 5, 2016

The spec states "$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used."

Instead of using .cider as the default directory when $XDG_CONFIG_HOME is not set, $HOME/.config/cidershould be used.

For full compliance with the spec, we'd also use $HOME/.local/share/cider instead of $/Library/Application Support/com.msanders.cider, but I'd be fine with leaving that as-is, since it is more idiomatic for OS X.

@RogerThiede
Copy link

This stackoverflow post suggests that each OS has a different directory standard.

Type Microsoft Windows Linux macOS
Config APPDATA XDG_CONFIG_HOME ~/Library/Preferences/
Data APPDATA XDG_DATA_HOME ~/Library/
Cache APPDATA XDG_CACHE_HOME ~/Library/Caches/

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

No branches or pull requests

3 participants