Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Look for config file in /etc #196

Open
agraven opened this issue Dec 20, 2019 · 3 comments
Open

Look for config file in /etc #196

agraven opened this issue Dec 20, 2019 · 3 comments

Comments

@agraven
Copy link

agraven commented Dec 20, 2019

It would be a nice addition if ruma would also look for a config file in /etc or /etc/ruma or similar, as it would make the server setup less dependent on the servers working directory, and is also standard behaviour for a "well-behaved" unix service.

@jimmycuadra
Copy link
Member

I'm in favor of this. More specifically we should probably follow the XDG spec for configuration data: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@vbrandl
Copy link

vbrandl commented Dec 21, 2019

I've used the xdg crate before in a small project and it worked fine. This could help here, too

@jeltz
Copy link

jeltz commented Jan 14, 2020

I am all for following the XDG standard for desktop programs and command line tools but I do not think virtually any daemon follows the XDG standard (which says that config should be under /etc/xdg), so I think following it will just confuse more people than it will help and Ruma will be the weird exception.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

4 participants