X0R0X / cli-torrent-dl

CLI utility to search and download torrents from major torrent sites
Other
108 stars 10 forks source link

Use XDG spec compliant configuration directory #1

Closed lbeltrame closed 3 years ago

lbeltrame commented 3 years ago

As per the XDG spec, configuration files should land in ~/.config/or a subdirectory under it. This makes things cleaner instead of a random hidden directory in one's $HOME.

Pyxdg offers a ready module (I have no idea how heavy it is on the dependency side) to handle this without worrying about the finer details.

X0R0X commented 3 years ago

Thanks for the input! Fixed in commit 5dac98b.

acheam0 commented 3 years ago

This is better, but still not ideal. According to the XDG Base Directory Specification, the program should check for the $XDG_CONFIG_HOME environment variable, and only if its unset or empty, default to ~/.config.

I think the README also needs to be updated to reflect this change.