summaryrefslogtreecommitdiff
path: root/mate-session/gsm-systemd.h
diff options
context:
space:
mode:
authorFabio Erculiani <[email protected]>2013-07-10 14:50:24 +0200
committerFabio Erculiani <[email protected]>2013-07-10 16:32:53 +0200
commit4213aa6562ef0ee8f19f8cd111a739a0febaa4e6 (patch)
tree548d0db7a72b7031ffd4676826707f8be01ff467 /mate-session/gsm-systemd.h
parentda13489e6b1f6f015a684c9b2c0d30297485952a (diff)
downloadmate-session-manager-4213aa6562ef0ee8f19f8cd111a739a0febaa4e6.tar.bz2
mate-session-manager-4213aa6562ef0ee8f19f8cd111a739a0febaa4e6.tar.xz
Use LOGIND_RUNNING() rather than sd_booted()
Diffstat (limited to 'mate-session/gsm-systemd.h')
-rw-r--r--mate-session/gsm-systemd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mate-session/gsm-systemd.h b/mate-session/gsm-systemd.h
index ad38ac7..8e886ba 100644
--- a/mate-session/gsm-systemd.h
+++ b/mate-session/gsm-systemd.h
@@ -23,6 +23,7 @@
#ifndef __GSM_SYSTEMD_H__
#define __GSM_SYSTEMD_H__
+#include <unistd.h>
#include <glib.h>
#include <glib-object.h>
@@ -38,6 +39,8 @@ extern "C" {
#define GSM_SYSTEMD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GSM_TYPE_SYSTEMD, GsmSystemdClass))
#define GSM_SYSTEMD_ERROR (gsm_systemd_error_quark ())
+#define LOGIND_RUNNING() (access("/run/systemd/seats/", F_OK) >= 0)
+
typedef struct _GsmSystemd GsmSystemd;
typedef struct _GsmSystemdClass GsmSystemdClass;
typedef struct _GsmSystemdPrivate GsmSystemdPrivate;