diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-06-29 11:57:14 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-06-29 11:57:14 +0200 |
commit | 99c57ebd65cdd60d5dbcac5b91af8c2d65c9ad17 (patch) | |
tree | ae21c63f521e4573e906821c5585c32751663eda | |
parent | ef4ae36873f2acefa4b61dbceea76e3587e89e0a (diff) | |
download | bin-99c57ebd65cdd60d5dbcac5b91af8c2d65c9ad17.tar.gz bin-99c57ebd65cdd60d5dbcac5b91af8c2d65c9ad17.tar.xz |
gpg-agent.sh: Update socket path to new default
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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 |