diff options
Diffstat (limited to 'gpg-agent.sh')
-rwxr-xr-x | gpg-agent.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh index 356af6b..39bfb45 100755 --- a/gpg-agent.sh +++ b/gpg-agent.sh @@ -12,12 +12,10 @@ initgpg(){ [[ -z $XDG_CONFIG_HOME ]] && XDG_CONFIG_HOME="$HOME/.config" [ -f "$XDG_CONFIG_HOME/disable-gpg-agent" ] && return 0 - #if [[ ! -S "$HOME/.gnupg/S.gpg-agent.ssh" ]]; then if ! pgrep -u ${SUDO_USER:-$USER} -x gpg-agent >/dev/null; then - #pkill gpg-agent /usr/bin/gpg-agent --daemon --enable-ssh-support --use-standard-socket >/dev/null fi - export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh + export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh } if [[ -n $DISPLAY ]]; then |