summaryrefslogtreecommitdiff
path: root/mate-session/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-10 12:20:16 -0700
committerStefano Karapetsas <[email protected]>2013-07-10 12:20:16 -0700
commitdba25d0e45128b297b76c33e78f3e4615171da5f (patch)
tree9b065f2d8ffcf05850369d02bc95f3b61f6a00a1 /mate-session/main.c
parentda13489e6b1f6f015a684c9b2c0d30297485952a (diff)
parent1bfa3e834d64e35b98474b75702487908684321b (diff)
downloadmate-session-manager-dba25d0e45128b297b76c33e78f3e4615171da5f.tar.bz2
mate-session-manager-dba25d0e45128b297b76c33e78f3e4615171da5f.tar.xz
Merge pull request #28 from lxnay/master
Use LOGIND_RUNNING() macro instead of sd_booted(), drop libsystemd-daemon dependency
Diffstat (limited to 'mate-session/main.c')
-rw-r--r--mate-session/main.c3
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;