pia-tools icon indicating copy to clipboard operation
pia-tools copied to clipboard

Default Transmission Config File to the User's $XDG_CONFIG_HOME or $HOME/.config

Open noctuid opened this issue 8 years ago • 0 comments

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.

noctuid avatar Apr 28 '16 05:04 noctuid