Open agraven opened 4 years ago
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
I've used the xdg crate before in a small project and it worked fine. This could help here, too
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.
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.