diff options
author | Ray Strode <rstrode@redhat.com> | 2013-05-20 22:30:08 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2013-05-20 22:30:08 -0400 |
commit | c8d80a570cf017870f692f496a5488097356f30c (patch) | |
tree | 0c8e9e83257e92d492c27c26df375c8edac4b8c2 /daemon/gdm-display.c | |
parent | fe6dd54d7b5300c1b025a95ed189d4222fd1432f (diff) | |
download | gdm-c8d80a570cf017870f692f496a5488097356f30c.tar.gz |
daemon: use LOGIND_RUNNING instead sd_booted()
It's more correct. See:
https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html
Diffstat (limited to 'daemon/gdm-display.c')
-rw-r--r-- | daemon/gdm-display.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c index 2a621df4..5e26b529 100644 --- a/daemon/gdm-display.c +++ b/daemon/gdm-display.c @@ -33,10 +33,7 @@ #include <glib/gi18n.h> #include <glib-object.h> -#ifdef WITH_SYSTEMD -#include <systemd/sd-daemon.h> -#endif - +#include "gdm-common.h" #include "gdm-display.h" #include "gdm-display-glue.h" #include "gdm-display-access-file.h" @@ -365,7 +362,7 @@ gdm_display_real_get_timed_login_details (GdmDisplay *display, * can support auto/timed login on auxilliary seats in the * systemd path. */ - if (sd_booted() > 0) { + if (LOGIND_RUNNING()) { if (g_strcmp0 (display->priv->seat_id, "seat0") != 0) { goto out; } |