[gdm/fix-udev-race: 37/44] local-display-factory: restart greeter session when crashed




commit adeccf3bb83f9c10406f0905863621e49972e074
Author: Xiaoguang Wang <xwang suse com>
Date:   Fri Nov 19 14:32:00 2021 +0800

    local-display-factory: restart greeter session when crashed
    
    When active vt is gdm initial vt, restart greeter session. Avoiding
    the blank screen when greeter session crashed.
    
    https://gitlab.gnome.org/GNOME/gdm/-/issues/735

 daemon/gdm-local-display-factory.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index c00e1c47d..1b43d0c17 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -539,7 +539,8 @@ on_display_status_changed (GdmDisplay             *display,
                  * ensures we get a new login screen when the user logs out,
                  * if there isn't one.
                  */
-                if (is_local && g_strcmp0 (session_class, "greeter") != 0) {
+                if (is_local &&
+                    (g_strcmp0 (session_class, "greeter") != 0 || factory->active_vt == GDM_INITIAL_VT)) {
                         /* reset num failures */
                         factory->num_failures = 0;
 


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