[gdm/wip/re-read-config: 3/4] common: Reload settings when graphics initialize




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

    common: Reload settings when graphics initialize
    
    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 after graphicals
    initialization completes.
    
    https://gitlab.gnome.org/GNOME/gdm/-/issues/763

 daemon/gdm-local-display-factory.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 9c83cca7b..24bb73b01 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -1052,10 +1052,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
@@ -1289,6 +1291,7 @@ on_uevent (GUdevClient *client,
         g_signal_handler_disconnect (factory->gudev_client, factory->uevent_handler_id);
         factory->uevent_handler_id = 0;
 
+        gdm_settings_direct_reload ();
         ensure_display_for_seat (factory, "seat0");
 }
 #endif


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