Use GTK pinentry for desktop GPG prompts

This commit is contained in:
Fabio Scotto di Santolo
2026-04-03 22:47:24 +02:00
parent 90c98999ec
commit 5c330b8c58
3 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
if tty -s; then
export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
fi

View File

@@ -1,3 +1,4 @@
pinentry-program /usr/bin/pinentry-gtk-2
enable-ssh-support
default-cache-ttl 600
max-cache-ttl 7200
max-cache-ttl 7200