[gdm] daemon: use LOGIND_RUNNING instead sd_booted()
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] daemon: use LOGIND_RUNNING instead sd_booted()
- Date: Tue, 21 May 2013 02:30:56 +0000 (UTC)
commit c8d80a570cf017870f692f496a5488097356f30c
Author: Ray Strode <rstrode redhat com>
Date: Mon May 20 22:30:08 2013 -0400
daemon: use LOGIND_RUNNING instead sd_booted()
It's more correct. See:
https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html
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 2a621df..5e26b52 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]