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

Customize the config location and default to XDG_CONFIG_HOME #216

Open
jcrben opened this issue Nov 13, 2016 · 1 comment
Open

Customize the config location and default to XDG_CONFIG_HOME #216

jcrben opened this issue Nov 13, 2016 · 1 comment

Comments

@jcrben
Copy link

jcrben commented Nov 13, 2016

I would prefer to get the scattered configs out of my home directory and into a central directory (I prefer ~/.config). dinghy is one of the few left - it is possible to customize where the preferences are installed? My preference would be to use the XDG_CONFIG_HOME if set, even on OSX...

@codekitchen
Copy link
Owner

It's hard-coded right now, but I don't see any particular problem with adding support for XDG_CONFIG_HOME if you want to send over a PR. Right now ~/.dinghy has both config and data files in it, so I suppose technically it should be using XDG_DATA_HOME as well to really follow the standard outlined at https://specifications.freedesktop.org/basedir-spec/latest/index.html#introduction

We'd want migration code as well, to look in ~/.dinghy and move files over if XDG_CONFIG_HOME is defined, so that dinghy doesn't mysterious reset itself when somebody upgrades.

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