aboutsummaryrefslogtreecommitdiff
path: root/src/session-menu-mgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-menu-mgr.c')
-rw-r--r--src/session-menu-mgr.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/session-menu-mgr.c b/src/session-menu-mgr.c
index 9010f36..ba82645 100644
--- a/src/session-menu-mgr.c
+++ b/src/session-menu-mgr.c
@@ -1210,10 +1210,17 @@ action_func_shutdown (SessionMenuMgr * mgr)
{
if (mgr->shell_mode)
{
- /* We call 'Reboot' method instead of 'Shutdown' because
- * Unity SessionManager handles the Shutdown request as a more
- * general request as the default SessionManager dialog would do */
- call_session_manager_method ("Reboot", NULL);
+ if (g_settings_get_boolean (mgr->indicator_settings, "suppress-logout-restart-shutdown"))
+ {
+ call_session_manager_method ("Shutdown", NULL);
+ }
+ else
+ {
+ /* We call 'Reboot' method instead of 'Shutdown' because
+ * Unity SessionManager handles the Shutdown request as a more
+ * general request as the default SessionManager dialog would do */
+ call_session_manager_method ("Reboot", NULL);
+ }
}
else
{