[gnome-packagekit] Don't shutdown when we just want to log out. Fixes rh#539800
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Don't shutdown when we just want to log out. Fixes rh#539800
- Date: Sat, 21 Nov 2009 14:05:40 +0000 (UTC)
commit 01eb3132a4b555e558b181b0c362e127817d06c8
Author: Richard Hughes <richard hughsie com>
Date: Sat Nov 21 14:01:08 2009 +0000
Don't shutdown when we just want to log out. Fixes rh#539800
src/gpk-session.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-session.c b/src/gpk-session.c
index 692cab4..454e763 100644
--- a/src/gpk-session.c
+++ b/src/gpk-session.c
@@ -97,7 +97,9 @@ gpk_session_logout (GpkSession *session)
}
/* we have to use no reply, as the SM calls into g-p-m to get the can_suspend property */
- dbus_g_proxy_call_no_reply (session->priv->proxy, "Shutdown", G_TYPE_INVALID);
+ dbus_g_proxy_call_no_reply (session->priv->proxy, "Logout",
+ G_TYPE_UINT, 1, /* no confirmation, but use inhibitors */
+ G_TYPE_INVALID);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]