installer: provide different reboot mechanisms for different desktops
This commit is contained in:
parent
da4d492339
commit
96b24b6f60
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user