SHA256
1
0
forked from pool/openssh
OBS User unknown
2009-07-09 11:58:30 +00:00
committed by Git OBS Bridge
parent 846c68acde
commit bfe38b6150
5 changed files with 24 additions and 865 deletions

View File

@@ -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+"$@"}
;;