File lightdm-set-gdmflexiserver-envvar.patch of Package lightdm

set the GDMFLEXISERVER environment variable for the gdmflexiserver wrapper

diff --git a/src/session-child.c b/src/session-child.c
--- a/src/session-child.c
+++ b/src/session-child.c
@@ -453,10 +453,7 @@ session_child_run (int argc, char **argv
         g_free (value);
     }
 
-    /* Put our tools directory in the path as a hack so we can use the legacy gdmflexiserver interface */
-    path = pam_getenv (pam_handle, "PATH");
-    if (path)
-        pam_putenv (pam_handle, g_strdup_printf ("PATH=%s:%s", PKGLIBEXEC_DIR, path));
+    pam_putenv (pam_handle, g_strdup_printf ("GDMFLEXISERVER=%s", PKGLIBEXEC_DIR "/gdmflexiserver"));
 
     /* Catch terminate signal and pass it to the child */
     signal (SIGTERM, signal_cb);
openSUSE Build Service is sponsored by