aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xmonad/xinit17
1 files changed, 17 insertions, 0 deletions
diff --git a/xmonad/xinit b/xmonad/xinit
index 008f3f2..1b7bacb 100644
--- a/xmonad/xinit
+++ b/xmonad/xinit
@@ -26,6 +26,23 @@ if test "${SESSION}" = xmonad; then
fi
fi
+ # Start gpg-agent, so that it doesn't try the terminal only, and fail when stdin is something else
+ if test -x /usr/bin/pinentry-gtk2; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk2 --daemon
+ elif test -x /usr/bin/pinentry-gtk-2; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk-2 --daemon
+ elif test -x /usr/bin/pinentry-gtk3; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk3 --daemon
+ elif test -x /usr/bin/pinentry-gtk-3; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk-3 --daemon
+ elif test -x /usr/bin/pinentry-gtk4; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk4 --daemon
+ elif test -x /usr/bin/pinentry-gtk-4; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk-4 --daemon
+ elif test -x /usr/bin/pinentry-gtk; then
+ setsid -f gpg-agent --pinentry-program /usr/bin/pinentry-gtk --daemon
+ fi
+
# Automatically focus output when mouse is moving in root window
pdeath HUP xmonad-autofocus-output &