[gdm/wip/fix-autologin-when-not-vt1: 1/2] session-worker: run PostSession on reboot



commit fddb6c24d8a8302b6c8a6736c379035b451efa75
Author: Ray Strode <rstrode redhat com>
Date:   Wed Oct 16 16:23:25 2019 -0400

    session-worker: run PostSession on reboot
    
    At the moment if the worker is killed before the session dies,
    we don't run the PostSession script.
    
    This commit fixes that.

 daemon/gdm-session-worker.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 1319907e..5acf5586 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -3528,6 +3528,7 @@ gdm_session_worker_finalize (GObject *object)
         if (worker->priv->child_pid > 0) {
                 gdm_signal_pid (worker->priv->child_pid, SIGTERM);
                 gdm_wait_on_pid (worker->priv->child_pid);
+               run_script (worker, GDMCONFDIR "/PostSession");
         }
 
         if (worker->priv->pam_handle != NULL) {


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