summarylogtreecommitdiffstats
path: root/support-reboot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'support-reboot.patch')
-rw-r--r--support-reboot.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/support-reboot.patch b/support-reboot.patch
new file mode 100644
index 000000000000..892f32b9f4c7
--- /dev/null
+++ b/support-reboot.patch
@@ -0,0 +1,28 @@
+diff -Naur indicator-session-12.10.4.orig/src/session-menu-mgr.c indicator-session-12.10.4/src/session-menu-mgr.c
+--- indicator-session-12.10.4.orig/src/session-menu-mgr.c 2012-10-03 18:39:38.000000000 +0200
++++ indicator-session-12.10.4/src/session-menu-mgr.c 2012-12-09 23:14:23.511412143 +0100
+@@ -44,13 +44,11 @@
+ #define CMD_INFO "gnome-control-center info"
+ #define CMD_SYSTEM_SETTINGS "gnome-control-center"
+ #ifdef HAVE_GTKLOGOUTHELPER
+- #define HAVE_RESTART_CMD TRUE
+ #define CMD_RESTART LIBEXECDIR"/gtk-logout-helper --restart"
+ #define CMD_LOGOUT LIBEXECDIR"/gtk-logout-helper --logout"
+ #define CMD_SHUTDOWN LIBEXECDIR"/gtk-logout-helper --shutdown"
+ #else
+- #define HAVE_RESTART_CMD FALSE /* hmm, no gnome-session-quit --restart? */
+- #define CMD_RESTART ""
++ #define CMD_RESTART "gnome-session-quit --reboot"
+ #define CMD_LOGOUT "gnome-session-quit --logout"
+ #define CMD_SHUTDOWN "gnome-session-quit --power-off"
+ #endif
+@@ -463,8 +461,7 @@
+ && mgr->allow_hibernate;
+ mi_set_visible (mgr->hibernate_mi, v);
+
+- v = HAVE_RESTART_CMD
+- && !g_settings_get_boolean (s, "suppress-restart-menuitem");
++ v = !g_settings_get_boolean (s, "suppress-restart-menuitem");
+ mi_set_visible (mgr->restart_mi, v);
+
+ v = !g_settings_get_boolean (s, "suppress-shutdown-menuitem");