From c280c0a3f3cda39a971a891b4ecbff2b186896f3 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 17 Oct 2018 10:30:13 +0100 Subject: [PATCH] Use $XDG_RUNTIME_DIR for gpg agent sockets This appears to be imposed by lightdm --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index 6349cc8..2ba7279 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -131,7 +131,7 @@ fi unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh + export SSH_AUTH_SOCK=${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh fi export GPG_TTY=($tty) -- 2.46.2