SHA256
1
0
forked from pool/gdm
gdm/gdm-selecting-desktop-environment.patch

35 lines
1.6 KiB
Diff

Index: gdm-2.91.93/daemon/gdm-session-worker.c
===================================================================
--- gdm-2.91.93.orig/daemon/gdm-session-worker.c
+++ gdm-2.91.93/daemon/gdm-session-worker.c
@@ -153,6 +153,8 @@ typedef int (* GdmSessionWorkerPamNewMes
const struct pam_message **,
struct pam_response **,
gpointer);
+static void on_saved_session_name_read (GdmSessionWorker *worker);
+static void on_saved_language_name_read (GdmSessionWorker *worker);
G_DEFINE_TYPE (GdmSessionWorker, gdm_session_worker, G_TYPE_OBJECT)
@@ -595,6 +597,20 @@ attempt_to_load_user_settings (GdmSessio
g_debug ("GdmSessionWorker: attempting to load user settings");
gdm_session_settings_load (worker->priv->user_settings,
username);
+
+
+ /* These singal handlers should be disconnected after the loading,
+ * so that gdm_session_settings_set_* APIs don't cause the emitting
+ * of Saved*NameRead D-Bus signals any more.
+ */
+ g_signal_handlers_disconnect_by_func (worker->priv->user_settings,
+ G_CALLBACK (on_saved_session_name_read),
+ worker);
+
+ g_signal_handlers_disconnect_by_func (worker->priv->user_settings,
+ G_CALLBACK (on_saved_language_name_read),
+ worker);
+
}
static void