summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index aeb5a31..5cff047 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -775,8 +775,8 @@ gpm_manager_idle_do_sleep (GpmManager *manager)
static void
gpm_manager_idle_changed_cb (GpmIdle *idle, GpmIdleMode mode, GpmManager *manager)
{
- /* 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;
}
@@ -1005,7 +1005,7 @@ gpm_manager_client_changed_cb (UpClient *client, GpmManager *manager)
manager->priv->on_battery = on_battery;
/* ConsoleKit says we are not on active console */
- if (!egg_console_kit_is_active (manager->priv->console)) {
+ if (!LOGIND_RUNNING() && !egg_console_kit_is_active (manager->priv->console)) {
egg_debug ("ignoring as not on active console");
return;
}