summaryrefslogtreecommitdiff
path: root/mate-session/gsm-systemd.h
diff options
context:
space:
mode:
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;