diff --git a/installer/installer.kmdr b/installer/installer.kmdr index 52cb6ba..9c89f18 100755 --- a/installer/installer.kmdr +++ b/installer/installer.kmdr @@ -3657,13 +3657,17 @@ fi if [ "$DESKTOP_SESSION" == "gnome" -o "$DESKTOP_SESSION" == "GNOME" ]; then - gnome-session-save --shutdown-dialog + dbus-send --session --type=method_call --print-reply --reply-timeout=2000 \ + --dest=org.gnome.SessionManager /org/gnome/SessionManager \ + org.gnome.SessionManager.RequestReboot elif [ "$DESKTOP_SESSION" == "lxde" -o "$DESKTOP_SESSION" == "LXDE" ]; then - dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit \ - /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart + # no better method found + systemctl reboot else -# assume KDE4 as default (or use KDE_FULL_SESSION == true) - /usr/bin/qdbus org.kde.ksmserver /KSMServer logout 0 1 2 + # assume KDE4 as default (or use KDE_FULL_SESSION == true) + dbus-send --session --type=method_call --print-reply --reply-timeout=2000 \ + --dest=org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout \ + int32:0 int32:1 int32:2 2>&1 && return fi