[gnome-session] manager: don't allow inhibitors to block forced logout



commit 58ce163d2c2b6167e7dbebf9215cee8f8dfddbc5
Author: Ray Strode <rstrode redhat com>
Date:   Fri Mar 4 14:11:30 2016 -0500

    manager: don't allow inhibitors to block forced logout
    
    If logout is forced, inhibitors shouldn't stop it !
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750508

 gnome-session/gsm-manager.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index a28d565..7258aa7 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -1006,6 +1006,10 @@ gsm_manager_is_logout_inhibited (GsmManager *manager)
 {
         GsmInhibitor *inhibitor;
 
+        if (manager->priv->logout_mode == GSM_MANAGER_LOGOUT_MODE_FORCE) {
+                return FALSE;
+        }
+
         if (manager->priv->inhibitors == NULL) {
                 return FALSE;
         }


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