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 4aba1e6c42
commit 4510fe7ee9
3 changed files with 8 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ desktop_common_packages:
- dunst
- emptty
- network-manager-applet
- pinentry-emacs
- pinentry-gtk
- rofi
- udiskie
- xfce-polkit

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