diff options
author | Fabio Erculiani <[email protected]> | 2013-07-10 14:50:24 +0200 |
---|---|---|
committer | Fabio Erculiani <[email protected]> | 2013-07-10 16:32:53 +0200 |
commit | 4213aa6562ef0ee8f19f8cd111a739a0febaa4e6 (patch) | |
tree | 548d0db7a72b7031ffd4676826707f8be01ff467 /mate-session/gsm-systemd.h | |
parent | da13489e6b1f6f015a684c9b2c0d30297485952a (diff) | |
download | mate-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.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; |