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

Configuration should support the XDG Base Directory Specification #478

Open
patrickt opened this issue Jul 2, 2020 · 2 comments
Open

Configuration should support the XDG Base Directory Specification #478

patrickt opened this issue Jul 2, 2020 · 2 comments
Labels

Comments

@patrickt
Copy link
Contributor

patrickt commented Jul 2, 2020

The XDG Base Directory Specification provides a standard for storing configuration files (usually looking like .config/$PROGRAMNAME/$CONFIGFILE, though configurable with a set of defined environment variables). I like this specification a lot, since it enables me to keep all my system config files in one place—I use it for Emacs, fish-shell, proselint, and many more. It would be really cool if I could keep my default summoner.toml in my .config repo. The downside of this is that each program has to determine in what order it looks up config files (e.g. Emacs prefers ~/.config/emacs/init.el, but if that doesn't exist it looks in ~/.emacs.d/init.el).

I’d be happy to take a shot at this, assuming a dependency on the xdg-basedir directory isn’t out of the question.

@patrickt
Copy link
Contributor Author

patrickt commented Jul 2, 2020

Update: I have a hack to make this work in my local copy. If you’re interested, I can try to make it better and submittable.

@chshersh
Copy link
Contributor

chshersh commented Jul 4, 2020

@patrickt This looks potentially useful. I don't mind supporting this feature. The xdg-basedir library looks small and reasonable, so it's acceptable to add it to dependencies. We will look into this and think about the implementation of this feature. I would like to read about XDG base directory before implementing this feature and understanding how to fit it better in Summoner.

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

No branches or pull requests

2 participants