2007-01-07 17:26:05 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SESSION=
|
|
|
|
|
2019-02-14 11:30:34 +01:00
|
|
|
if [ -n "$KDE_FULL_SESSION" ] ; then
|
|
|
|
SESSION=kde
|
2007-01-07 17:26:05 +01:00
|
|
|
fi
|
|
|
|
|
2019-02-14 11:30:34 +01:00
|
|
|
if [ "$DESKTOP_SESSION" = "lxqt" ]; then
|
|
|
|
SESSION=kde
|
2007-01-07 17:26:05 +01:00
|
|
|
fi
|
|
|
|
|
2013-09-19 06:09:33 +02:00
|
|
|
GNOME_SSH_ASKPASS="@LIBEXECDIR@/ssh/gnome-ssh-askpass"
|
|
|
|
KDE_SSH_ASKPASS="@LIBEXECDIR@/ssh/ksshaskpass"
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
case "$SESSION" in
|
2009-07-09 13:58:30 +02:00
|
|
|
kde)
|
2019-07-22 20:28:13 +02:00
|
|
|
[ -e $KDE_SSH_ASKPASS ] && exec $KDE_SSH_ASKPASS ${1+"$@"}
|
|
|
|
exec $GNOME_SSH_ASKPASS ${1+"$@"}
|
2009-07-09 13:58:30 +02:00
|
|
|
;;
|
2007-01-07 17:26:05 +01:00
|
|
|
*)
|
2019-07-22 20:28:13 +02:00
|
|
|
[ -e GNOME_SSH_ASKPASS ] && exec $GNOME_SSH_ASKPASS ${1+"$@"}
|
|
|
|
exec $KDE_SSH_ASKPASS ${1+"$@"}
|
2007-01-07 17:26:05 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|