forked from pool/openssh
This commit is contained in:
committed by
Git OBS Bridge
parent
846c68acde
commit
bfe38b6150
10
ssh-askpass
10
ssh-askpass
@@ -25,10 +25,9 @@ if [ -z "$SESSION" ] ; then
|
||||
fi
|
||||
|
||||
GNOME_SSH_ASKPASS="/usr/lib/ssh/gnome-ssh-askpass"
|
||||
KDE_SSH_ASKPASS="/usr/lib/ssh/ksshaskpass"
|
||||
X11_SSH_ASKPASS="/usr/lib/ssh/x11-ssh-askpass"
|
||||
|
||||
# note: if there is ever a kde-ssh-askpass, just add it based on SESSION=kde
|
||||
|
||||
case "$SESSION" in
|
||||
gnome)
|
||||
if [ -f $GNOME_SSH_ASKPASS ]; then
|
||||
@@ -37,6 +36,13 @@ case "$SESSION" in
|
||||
exec $X11_SSH_ASKPASS ${1+"$@"}
|
||||
fi
|
||||
;;
|
||||
kde)
|
||||
if [ -f $KDE_SSH_ASKPASS ]; then
|
||||
exec $KDE_SSH_ASKPASS ${1+"$@"}
|
||||
else
|
||||
exec $X11_SSH_ASKPASS ${1+"$@"}
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
exec $X11_SSH_ASKPASS ${1+"$@"}
|
||||
;;
|
||||
|
Reference in New Issue
Block a user