File lightdm-disable-utmp-handling.patch of Package lightdm

# HG changeset patch
# Parent f1d31c63d810bec712b3afc90771bbb42d47bacb
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
@@ -11,7 +11,9 @@
 #include <grp.h>
 #include <glib.h>
 #include <security/pam_appl.h>
+#if 0
 #include <utmpx.h>
+#endif
 
 #include "session-child.h"
 #include "session.h"
@@ -525,6 +527,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)
         {
@@ -550,10 +553,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)
         {
@@ -579,6 +582,7 @@ session_child_run (int argc, char **argv
                 g_printerr ("Failed to write utmpx: %s\n", strerror (errno));
             endutxent ();
         }
+#endif
     }
 
     /* Remove X authority */
openSUSE Build Service is sponsored by