[gdm] Ensure Init script is called before starting autologin (fixes bug #614488).



commit a9d7f04e02df0fb227ebc57e68e9bd75a210fb95
Author: Brian Cameron <Brian Cameron sun com>
Date:   Wed Apr 21 17:03:07 2010 -0500

    Ensure Init script is called before starting autologin (fixes bug #614488).

 daemon/gdm-simple-slave.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index 59e3530..2910366 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -1062,6 +1062,8 @@ idle_connect_to_display (GdmSimpleSlave *slave)
                         start_greeter (slave);
                         create_new_session (slave);
                 } else {
+                        /* Run the init script. gdmslave suspends until script has terminated */
+                        gdm_slave_run_script (GDM_SLAVE (slave), GDMCONFDIR "/Init", GDM_USERNAME);
                         reset_session (slave);
                 }
         } else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]