[gdm/wip/re-read-config: 2/2] common: Reload settings when CanGraphical flips




commit f7cec2d4d318d352c6b6155e012d1c7ccb1e31e4
Author: Ray Strode <rstrode redhat com>
Date:   Tue Feb 15 14:33:22 2022 -0500

    common: Reload settings when CanGraphical flips
    
    If GDM starts faster than graphics initialize, then the
    udev rules that write out /run/gdm/custom.conf might get
    run too late for GDM to notice.
    
    This commit changes GDM to reread its config when CanGraphical
    flips from false to true.
    
    https://gitlab.gnome.org/GNOME/gdm/-/issues/763

 daemon/gdm-local-display-factory.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 1b43d0c17..355e7de0c 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -949,10 +949,12 @@ on_seat_properties_changed (GDBusConnection *connection,
         if (ret < 0)
                 return;
 
-        if (ret != 0)
+        if (ret != 0) {
+                gdm_settings_direct_reload ();
                 ensure_display_for_seat (GDM_LOCAL_DISPLAY_FACTORY (user_data), seat);
-        else
+        } else {
                 delete_display (GDM_LOCAL_DISPLAY_FACTORY (user_data), seat);
+        }
 }
 
 static gboolean


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