diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-10 12:20:16 -0700 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-10 12:20:16 -0700 |
commit | dba25d0e45128b297b76c33e78f3e4615171da5f (patch) | |
tree | 9b065f2d8ffcf05850369d02bc95f3b61f6a00a1 /mate-session/gsm-systemd.h | |
parent | da13489e6b1f6f015a684c9b2c0d30297485952a (diff) | |
parent | 1bfa3e834d64e35b98474b75702487908684321b (diff) | |
download | mate-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/gsm-systemd.h')
-rw-r--r-- | mate-session/gsm-systemd.h | 3 |
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; |