6cd875acfc
- spec file cleanup (don't pointelssly build whole OpenSSH) - spec file and patch cleanup * removing obsoleted auditing patch (openssh-%{version}-audit.patch) - added patches from SLE * GSSAPI key exchange * FIPS enablement (currently disabled) * small bugfixes - split the LDAP helper into a separate package: openssh-akc-ldap OBS-URL: https://build.opensuse.org/request/show/199679 OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=55
51 lines
893 B
Bash
51 lines
893 B
Bash
#!/bin/bash
|
|
|
|
SESSION=
|
|
|
|
case "$DESKTOP_SESSION" in
|
|
kde) SESSION=kde ;;
|
|
gnome) SESSION=gnome ;;
|
|
esac
|
|
|
|
if [ -z "$SESSION" ] ; then
|
|
WM="${WINDOWMANAGER##*/}"
|
|
case "$WM" in
|
|
*kde*) SESSION=kde ;;
|
|
*gnome*) SESSION=gnome ;;
|
|
esac
|
|
fi
|
|
|
|
if [ -z "$SESSION" ] ; then
|
|
if [ -n "$KDE_FULL_SESSION" ] ; then
|
|
SESSION=kde
|
|
fi
|
|
if [ -n "$GNOME_DESKTOP_SESSION_ID" ] ; then
|
|
SESSION=gnome
|
|
fi
|
|
fi
|
|
|
|
GNOME_SSH_ASKPASS="@LIBEXECDIR@/ssh/gnome-ssh-askpass"
|
|
KDE_SSH_ASKPASS="@LIBEXECDIR@/ssh/ksshaskpass"
|
|
X11_SSH_ASKPASS="@LIBEXECDIR@/ssh/x11-ssh-askpass"
|
|
|
|
case "$SESSION" in
|
|
gnome)
|
|
if [ -f $GNOME_SSH_ASKPASS ]; then
|
|
exec $GNOME_SSH_ASKPASS ${1+"$@"}
|
|
else
|
|
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+"$@"}
|
|
;;
|
|
esac
|
|
|