Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants