From: Mike Frysinger Date: Fri, 2 Oct 2015 13:19:45 +0000 (-0400) Subject: profile.d: export GPG_TTY X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=007ad6b8b4ba49ed7e9eae7a18c618d6a530e383;p=home.git profile.d: export GPG_TTY --- 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)"