Packaging for Arch Linux && XDG Base Directory support
Hi, I just made a quick AUR package for this program. If you want, you can add it to the README under the installation methods.
Also, it would be cool if you could consider supporting XDG Base Directories, so that the configuration file would be
$XDG_CONFIG_HOME/torrodle.json (or even better, $XDG_CONFIG_HOME/torrodle/config.json).
For backwards compatibility, you could also check if ~/.torrodle.json already exists and/or XDG_CONFIG_HOME is unset, and in those cases fallback to the path in $HOME.
Thanks in advance!
For implementing XDG Specifications, I found this Go package: https://github.com/adrg/xdg, which serves to set the environment variables. So the idea would be: look for
~/.torrodle.json; if it doesn't exist, check if $XDG_CONFIG_HOME, and if it is unset, use the above package to set it and then create the config file at that path.
Let me know what you think about it. I'm not a programmer but I am willing to help if I can