summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-24 14:22:27 +0200
committerStefano Karapetsas <[email protected]>2013-07-24 14:22:27 +0200
commit2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9 (patch)
tree4837604d3ce15f7cd8009a8d4a0e87c8f6ad5c78 /src
parent4c5c81c6bc16812cb62a53b7257167cddef28a7c (diff)
downloadmate-power-manager-2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9.tar.bz2
mate-power-manager-2ec6a059c222cc4efb1aa9341b7fad4f5d7631a9.tar.xz
Dont rely only on consolekit for button pressed event
Add also a check if systemd is running
Diffstat (limited to 'src')
-rw-r--r--src/gpm-manager.c4
1 files 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;
}