diff options
Diffstat (limited to 'mate-session/main.c')
-rw-r--r-- | mate-session/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mate-session/main.c b/mate-session/main.c index 4dd8fd1..6fa03b0 100644 --- a/mate-session/main.c +++ b/mate-session/main.c @@ -45,7 +45,6 @@ #include "gsm-consolekit.h" #ifdef HAVE_SYSTEMD #include "gsm-systemd.h" -#include <systemd/sd-daemon.h> #endif #include "gsm-util.h" #include "gsm-manager.h" @@ -293,7 +292,7 @@ static void maybe_load_saved_session_apps(GsmManager* manager) gboolean is_login; #ifdef HAVE_SYSTEMD - if (sd_booted() > 0) { + if (LOGIND_RUNNING()) { systemd = gsm_get_systemd(); session_type = gsm_systemd_get_current_session_type(systemd); is_login = g_strcmp0 (session_type, GSM_SYSTEMD_SESSION_TYPE_LOGIN_WINDOW) == 0; |