typicode / katon

(use hotel instead)
https://github.com/typicode/hotel
MIT License
683 stars 28 forks source link

Feature request: follow XDG base directory specification #48

Open jasonkarns opened 10 years ago

jasonkarns commented 10 years ago

I would like to see Katon follow the XDG base dir spec.

If I understand katon correctly, the files placed under $HOME/.katon are runtime-related files? They ought to be placed in $XDG_RUNTIME_DIR/katon.

For a smooth transition, we could use the $XDG_RUNTIME_DIR only if it exists and fall back to $HOME/.katon. This would leave XDG support as purely opt-in.