diff options
author | Mattias Andrée <maandree@kth.se> | 2024-07-12 12:21:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-07-12 12:21:12 +0200 |
commit | 6307db87070b841837237263a21f51cda2fe4218 (patch) | |
tree | e8da73566ec49d595b957b0173f7b57455400fcd /xmonad/xinit | |
parent | Add missing dependency checks (diff) | |
download | dotfiles-6307db87070b841837237263a21f51cda2fe4218.tar.gz dotfiles-6307db87070b841837237263a21f51cda2fe4218.tar.bz2 dotfiles-6307db87070b841837237263a21f51cda2fe4218.tar.xz |
Start gpg-agent, so that it doesn't try the terminal only, and fail when stdin is something else
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xmonad/xinit')
-rw-r--r-- | xmonad/xinit | 17 |
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 & |