From 87c9d79dbcd7176ee2d85197bdb0c654ae6a70e5 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 21 Nov 2025 05:27:03 -0800 Subject: session: fix GPG/pinentry auth by restarting gpg-agent in xinitrc Previous fix (disabling emacs.service) did not resolve the issue. Added reset-auth call to .xinitrc after DISPLAY export so gpg-agent inherits correct environment before apps start. --- dotfiles/system/.xinitrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dotfiles/system/.xinitrc') diff --git a/dotfiles/system/.xinitrc b/dotfiles/system/.xinitrc index fe3750b..d61c48f 100755 --- a/dotfiles/system/.xinitrc +++ b/dotfiles/system/.xinitrc @@ -26,6 +26,9 @@ logfile="$logdir/$(date +%Y-%m-%d_%H-%M-%S-%3N.dwm.log)" export XAUTHORITY=$HOME/.Xauthority export DISPLAY=:0.0 +# Reset GPG agent so it inherits DISPLAY for pinentry-dmenu +~/.local/bin/reset-auth >/dev/null 2>&1 + # Allow sudo use of display xhost +si:localuser:root -- cgit v1.2.3