From 007ad6b8b4ba49ed7e9eae7a18c618d6a530e383 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 2 Oct 2015 09:19:45 -0400 Subject: [PATCH] profile.d: export GPG_TTY --- .profile.d/keychain.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.profile.d/keychain.sh b/.profile.d/keychain.sh index 7f0ef65..c5ceb78 100644 --- a/.profile.d/keychain.sh +++ b/.profile.d/keychain.sh @@ -10,3 +10,7 @@ if type keychain >/dev/null 2>&1 ; then [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && . ~/.keychain/${HOSTNAME}-sh-gpg fi fi + +# The agent might try to spawn pinentry on the tty it started +# on instead of the tty gpg is now running on. +export GPG_TTY="$(tty)" -- 2.39.5