exoframejs / exoframe

Exoframe is a self-hosted tool that allows simple one-command deployments using Docker
https://exoframejs.github.io/exoframe/
1.14k stars 57 forks source link

Move config file #309

Closed ForsakenHarmony closed 1 year ago

ForsakenHarmony commented 3 years ago

Hey there, would be nice if the config file could be moved to not clutter the home directory

i.e. use the Linux standard of .config/exoframe

yamalight commented 3 years ago

This is quite a bit of work, but I'd be more than happy to accept a PR that implements reading config folder location from EXO_CONFIG_PATH env var (needs to be done in both server and client for consistency) 🤔

ForsakenHarmony commented 3 years ago

Would you also be happy with changing the default and automatically migrating things?

It's not really manageable for me to add an environment variable for every single program to use the default location provided by Linux/XDG

Maybe $XDG_CONFIG_HOME could be used https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html though it does default to $HOME/.config if it's not defined

yamalight commented 3 years ago

Changing defaults with auto-migration would also work!

ForsakenHarmony commented 3 years ago

I probably won't get around to this, given that I don't use exoframe right now, sorry

If you're interested in doing this yourself, feel free to, otherwise you're also free to close this to reduce the issue burden

yamalight commented 3 years ago

@ForsakenHarmony no worries! already planned it for v7.0 (as a one of breaking changes).

yamalight commented 1 year ago

This is done.