aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Lane <iain.lane@canonical.com>2013-04-12 12:35:31 +0100
committerIain Lane <iain.lane@canonical.com>2013-04-12 12:35:31 +0100
commit40c99158a7f39b9932d531a16fe82eb399dcbf37 (patch)
tree84a2387b29f3704c5c27cef99a0aec339ecbac7f
parent2e643e7bd0c3c182a62e7112431ea797e18bf6ed (diff)
downloadayatana-indicator-session-40c99158a7f39b9932d531a16fe82eb399dcbf37.tar.gz
ayatana-indicator-session-40c99158a7f39b9932d531a16fe82eb399dcbf37.tar.bz2
ayatana-indicator-session-40c99158a7f39b9932d531a16fe82eb399dcbf37.zip
Allow PolicyKit to interactively ask the user for credentials in gtk-logout-helper
-rw-r--r--src/gtk-logout-helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtk-logout-helper.c b/src/gtk-logout-helper.c
index 12f2198..b013a8f 100644
--- a/src/gtk-logout-helper.c
+++ b/src/gtk-logout-helper.c
@@ -70,11 +70,11 @@ logind_fallback (LogoutDialogType action)
break;
case LOGOUT_DIALOG_TYPE_SHUTDOWN:
g_debug("Telling logind to 'PowerOff'");
- result = call_logind ("PowerOff", g_variant_new ("(b)", FALSE), &error);
+ result = call_logind ("PowerOff", g_variant_new ("(b)", TRUE), &error);
break;
case LOGOUT_DIALOG_TYPE_RESTART:
g_debug("Telling logind to 'Reboot'");
- result = call_logind ("Reboot", g_variant_new ("(b)", FALSE), &error);
+ result = call_logind ("Reboot", g_variant_new ("(b)", TRUE), &error);
break;
default:
g_warning("Unknown action");