From bb844234debd57e3d4b2f2a0ca081b14e48596d8 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 11 Sep 2024 14:14:10 +0900 Subject: [PATCH] start-post-i3: use askpass autodetection --- start-post-i3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/start-post-i3 b/start-post-i3 index bb7d4fa..5d33084 100755 --- a/start-post-i3 +++ b/start-post-i3 @@ -19,11 +19,14 @@ fi emacs --daemon -if [ -f /etc/arch-release ]; then - SSH_ASKPASS=/usr/bin/qt4-ssh-askpass -elif [ -x /usr/bin/ssh-askpass-fullscreen ]; then - SSH_ASKPASS=/usr/bin/ssh-askpass-fullscreen -fi +for askpass in /usr/lib/ssh/gtk-ssh-askpass \ + /usr/bin/ssh-askpass-fullscreen \ + /usr/bin/qt4-ssh-askpass; do + if [ -x $askpass ]; then + SSH_ASKPASS=$askpass + break + fi +done ssh-add