pia-tools
pia-tools copied to clipboard
Default Transmission Config File to the User's $XDG_CONFIG_HOME or $HOME/.config
The previous pull request I made for this does in fact work when pia-tools is run as root. logname
can be used to get the name of the logged in user. For example,
sudo -i -u $(logname) echo \$XDG_CONFIG_HOME
If XDG_CONFIG_HOME
isn't set, it could fall back to $HOME/.config/transmission-daemon/settings.json
.