[gnupg] fix: env variable setup

set the right envvar so that pinentry doesn't display ncurses to tty
This commit is contained in:
David JULIEN 2021-11-20 16:00:56 +01:00
parent b7cb6c1940
commit 96f5019a94
4 changed files with 5 additions and 1 deletions

View File

@ -28,4 +28,4 @@ else
. "$HOME/.xprofile"
fi
exec dwm
exec /usr/bin/dbus-launch --sh-syntax --exit-with-session dwm

View File

@ -3,6 +3,7 @@
# This file is sourced when launching a DM from startx/xinit
# session launch
eval $(dbus-launch --sh-syntax --exit-with-session)
xss-lock -- slock &
redshift &

View File

@ -1,3 +1,5 @@
allow-preset-passphrase
default-cache-ttl 604800
max-cache-ttl 604800
pinentry-program /usr/bin/pinentry

View File

@ -3,6 +3,7 @@
# Reset tty for gpg
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
# Enable colors and change prompt:
autoload -U colors && colors