diff options
author | Martin Pitt <martinpitt@gnome.org> | 2013-03-21 11:47:56 +0100 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2013-03-29 11:04:18 +0100 |
commit | 064ebd55bb838a4225e8cb525717e315c29d4d8b (patch) | |
tree | 16e9d8f8c0ad56ca6eb3157fc173e6ef3d3eef96 /common | |
parent | 1fe1e565300eb9472cfc4348e4bceef5ef25512a (diff) | |
download | gdm-064ebd55bb838a4225e8cb525717e315c29d4d8b.tar.gz |
Fix checks for logind
It is possible to build systemd without logind or run logind without systemd
init, in both cases testing for systemd init is wrong. Check for
/run/systemd/seats in the parts which talk to logind instead, as recommended by
systemd upstream.
For details, see:
<https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html>
https://bugzilla.gnome.org/show_bug.cgi?id=696266
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/gdm-common.h b/common/gdm-common.h index 00012743..f9033aa5 100644 --- a/common/gdm-common.h +++ b/common/gdm-common.h @@ -33,6 +33,9 @@ #define GDM_CUSTOM_SESSION "custom" +/* check if logind is running */ +#define LOGIND_RUNNING() (access("/run/systemd/seats/", F_OK) >= 0) + G_BEGIN_DECLS gboolean gdm_is_version_unstable (void); |