homeserver icon indicating copy to clipboard operation
homeserver copied to clipboard

Look for config file in /etc

Open agraven opened this issue 5 years ago • 3 comments

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.

agraven avatar Dec 20 '19 09:12 agraven

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

jimmycuadra avatar Dec 21 '19 07:12 jimmycuadra

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

vbrandl avatar Dec 21 '19 10:12 vbrandl

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.

jeltz avatar Jan 14 '20 18:01 jeltz