Commit c8d80a57 authored by Ray Strode's avatar Ray Strode
Browse files

daemon: use LOGIND_RUNNING instead sd_booted()

It's more correct. See:

https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html
parent fe6dd54d
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment