aajanki / yle-dl

Download videos from Yle servers
https://aajanki.github.io/yle-dl/index-en.html
GNU General Public License v3.0
302 stars 52 forks source link

Search for the config file under XDG_CONFIG_HOME #348

Closed kankaristo closed 8 months ago

kankaristo commented 8 months ago

According to the XDG Base Directory Specification, config files should be under the $XDG_CONFIG_HOME directory (which defaults to ~/.config), and not directly under the home directory.

In other words, a lot of modern Linux apps have their config under ~/.config and not directly in the home dir, which makes your home a bit neater.

There was already a list of default config paths, so this was nice and easy to add.

kankaristo commented 8 months ago

I also updated README.md and README.fi.md to mention this alternative path for the config file. I'm not confident enough in my Swedish skills to edit README.sv.md as well, but feel free to edit the PR (or suggest a change).