[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Bug fix - do not attempt to call Inhibit() if logind isn't running.

noreply at xfce.org noreply at xfce.org
Fri Feb 27 18:30:37 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 62c6acdc80d3afd78a485b01a49ff5369fcadd9b
Author: Dima Krasner <dima at dimakrasner.com>
Date:   Sat Feb 21 14:41:17 2015 +0200

    Bug fix - do not attempt to call Inhibit() if logind isn't running.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfpm-manager.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xfpm-manager.c b/src/xfpm-manager.c
index 9549b66..0795414 100644
--- a/src/xfpm-manager.c
+++ b/src/xfpm-manager.c
@@ -550,6 +550,9 @@ xfpm_manager_inhibit_sleep_systemd (XfpmManager *manager)
     if (g_strcmp0(what, "") == 0)
         return -1;
 
+    if (!(LOGIND_RUNNING()))
+        return -1;
+
     XFPM_DEBUG ("Inhibiting systemd sleep: %s", what);
 
     bus_connection = dbus_g_connection_get_connection (manager->priv->system_bus);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list