Blob Blame History Raw
--- a/cinnamon-session/csm-systemd.c
+++ b/cinnamon-session/csm-systemd.c
@@ -33,7 +33,6 @@
 #include <pwd.h>
 
 #include <systemd/sd-login.h>
-#include <systemd/sd-daemon.h>
 
 #include <glib.h>
 #include <glib-object.h>
@@ -618,7 +617,8 @@ csm_systemd_new (void)
 {
         CsmSystemd *manager;
 
-        if (sd_booted () <= 0)
+        /* logind is not running ? */
+        if (access("/run/systemd/seats/", F_OK) < 0)
                 return NULL;
 
         manager = g_object_new (CSM_TYPE_SYSTEMD, NULL);