installer.kmdr: fix desktop session check on reboot for KDE when DESKTOP_SESSION returns default

This commit is contained in:
Silvan Calarco 2011-10-06 18:30:06 +02:00
parent 7b63c05b37
commit 007cfe7864

View File

@ -3464,7 +3464,7 @@ fi
<stringlist>
<string>if [ "$DESKTOP_SESSION" == "gnome" ]; then
gnome-session-save --shutdown-dialog
elif [ "${DESKTOP_SESSION:0:3}" == "kde" -a -x /usr/bin/qdbus ]; then
elif [ "${DESKTOP_SESSION:0:3}" == "kde" -o "${KDE_FULL_SESSION}" == "true" ]; then
/usr/bin/qdbus org.kde.ksmserver /KSMServer logout 0 1 2
elif [ "${DESKTOP_SESSION:0:3}" == "kde" ]; then
dcop ksmserver ksmserver logout 0 1 1