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.
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,If
XDG_CONFIG_HOME
isn't set, it could fall back to$HOME/.config/transmission-daemon/settings.json
.