installer: provide different reboot mechanisms for different desktops

This commit is contained in:
Silvan Calarco 2011-08-22 18:49:41 +02:00
parent da4d492339
commit 96b24b6f60

View File

@ -3433,10 +3433,14 @@ fi
</property>
<property name="associations" stdset="0">
<stringlist>
<string>if [ -x /usr/bin/qdbus ]; then
<string>if [ "$DESKTOP_SESSION" == "gnome" ]; then
gnome-session-save --shutdown-dialog
elif [ "${DESKTOP_SESSION:0:3}" == "kde" -a -x /usr/bin/qdbus ]; then
/usr/bin/qdbus org.kde.ksmserver /KSMServer logout 0 1 2
else
elif [ "${DESKTOP_SESSION:0:3}" == "kde" ]; then
dcop ksmserver ksmserver logout 0 1 1
else
shutdown now -r
fi
</string>
</stringlist>