File lightdm-disable-utmp-handling.patch of Package lightdm
# HG changeset patch
# Parent e7b391d67ca5135c48d1aef993e2aedfbce4345e
disable utmp handling since this is handled in the Xstartup/Xreset scripts
diff --git a/src/session-child.c b/src/session-child.c
--- a/src/session-child.c
+++ b/src/session-child.c
@@ -13,7 +13,9 @@
#include <grp.h>
#include <glib.h>
#include <security/pam_appl.h>
+#if 0
#include <utmpx.h>
+#endif
#include <sys/mman.h>
#include "configuration.h"
@@ -597,6 +599,7 @@ session_child_run (int argc, char **argv
/* Wait for the command to complete (blocks) */
if (child_pid > 0)
{
+#if 0
/* Log to utmp */
if (g_strcmp0 (class, XDG_SESSION_CLASS_GREETER) != 0)
{
@@ -624,10 +627,10 @@ session_child_run (int argc, char **argv
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
endutxent ();
}
-
+#endif
waitpid (child_pid, &return_code, 0);
child_pid = 0;
-
+#if 0
/* Log to utmp */
if (g_strcmp0 (class, XDG_SESSION_CLASS_GREETER) != 0)
{
@@ -655,6 +658,7 @@ session_child_run (int argc, char **argv
g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
endutxent ();
}
+#endif
}
/* Remove X authority */