From 2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 24 Jul 2013 14:22:27 +0200 Subject: Dont rely only on consolekit for button pressed event Add also a check if systemd is running --- src/gpm-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpm-manager.c b/src/gpm-manager.c index c99bd09..b1f760a 100644 --- a/src/gpm-manager.c +++ b/src/gpm-manager.c @@ -903,8 +903,8 @@ gpm_manager_button_pressed_cb (GpmButton *button, const gchar *type, GpmManager gchar *message; egg_debug ("Button press event type=%s", type); - /* ConsoleKit says we are not on active console */ - if (!egg_console_kit_is_active (manager->priv->console)) { + /* ConsoleKit/systemd say we are not on active console */ + if (!LOGIND_RUNNING() && !egg_console_kit_is_active (manager->priv->console)) { egg_debug ("ignoring as not on active console"); return; } -- cgit v1.2.1