[gnome-session] systemd: Inhibit the lid as well when suspend is inhibited



commit 9540eff45540ba2ce985be0c02af73a14e41d43f
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 31 18:09:33 2013 +0100

    systemd: Inhibit the lid as well when suspend is inhibited
    
    Otherwise, even though we shouldn't suspend, we'll still do
    it when closing the lid, as gnome-session fails to tell systemd
    not to handle the lid switch.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692954

 gnome-session/gsm-systemd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/gsm-systemd.c b/gnome-session/gsm-systemd.c
index 68d8988..c6f22f0 100644
--- a/gnome-session/gsm-systemd.c
+++ b/gnome-session/gsm-systemd.c
@@ -733,7 +733,7 @@ gsm_systemd_add_inhibitor (GsmSystem        *system,
                 g_dbus_proxy_call_with_unix_fd_list (manager->priv->sd_proxy,
                                                      "Inhibit",
                                                      g_variant_new ("(ssss)",
-                                                                    "sleep:shutdown",
+                                                                    "sleep:shutdown:handle-lid-switch",
                                                                     g_get_user_name (),
                                                                     "user session inhibited",
                                                                     "block"),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]