|
|
f42647 |
From 0012497171500090b55e4c8e967809a5b2daaa94 Mon Sep 17 00:00:00 2001
|
|
|
f42647 |
From: Ray Strode <rstrode@redhat.com>
|
|
|
f42647 |
Date: Wed, 14 Feb 2018 16:07:15 -0500
|
|
|
f42647 |
Subject: [PATCH] Revert "session: don't call gdm_session_defaults_changed from
|
|
|
f42647 |
setup"
|
|
|
f42647 |
|
|
|
f42647 |
This reverts commit 572a19324b75cc1f1b2db4908e2d7c9f06e4e335.
|
|
|
f42647 |
|
|
|
f42647 |
It turns out we need this call for more than just the session type,
|
|
|
f42647 |
we also need to it to inform the greeter about the default session
|
|
|
f42647 |
to use.
|
|
|
f42647 |
---
|
|
|
f42647 |
daemon/gdm-session.c | 2 ++
|
|
|
f42647 |
1 file changed, 2 insertions(+)
|
|
|
f42647 |
|
|
|
f42647 |
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
|
|
|
f42647 |
index 3a1b7f23..e9cbd0ec 100644
|
|
|
f42647 |
--- a/daemon/gdm-session.c
|
|
|
f42647 |
+++ b/daemon/gdm-session.c
|
|
|
f42647 |
@@ -2368,78 +2368,80 @@ initialize (GdmSession *self,
|
|
|
f42647 |
g_variant_builder_add_parsed (&details, "{'seat-id', <%s>}", self->priv->display_seat_id);
|
|
|
f42647 |
|
|
|
f42647 |
if (self->priv->display_x11_authority_file != NULL)
|
|
|
f42647 |
g_variant_builder_add_parsed (&details, "{'x11-authority-file', <%s>}", self->priv->display_x11_authority_file);
|
|
|
f42647 |
|
|
|
f42647 |
g_debug ("GdmSession: Beginning initialization");
|
|
|
f42647 |
|
|
|
f42647 |
conversation = find_conversation_by_name (self, service_name);
|
|
|
f42647 |
if (conversation != NULL) {
|
|
|
f42647 |
gdm_dbus_worker_call_initialize (conversation->worker_proxy,
|
|
|
f42647 |
g_variant_builder_end (&details),
|
|
|
f42647 |
|
|
|
f42647 |
conversation->worker_cancellable,
|
|
|
f42647 |
(GAsyncReadyCallback) on_initialization_complete_cb,
|
|
|
f42647 |
conversation);
|
|
|
f42647 |
}
|
|
|
f42647 |
|
|
|
f42647 |
g_free (extensions);
|
|
|
f42647 |
}
|
|
|
f42647 |
|
|
|
f42647 |
void
|
|
|
f42647 |
gdm_session_setup (GdmSession *self,
|
|
|
f42647 |
const char *service_name)
|
|
|
f42647 |
{
|
|
|
f42647 |
|
|
|
f42647 |
g_return_if_fail (GDM_IS_SESSION (self));
|
|
|
f42647 |
|
|
|
f42647 |
update_session_type (self);
|
|
|
f42647 |
|
|
|
f42647 |
initialize (self, service_name, NULL, NULL);
|
|
|
f42647 |
+ gdm_session_defaults_changed (self);
|
|
|
f42647 |
}
|
|
|
f42647 |
|
|
|
f42647 |
|
|
|
f42647 |
void
|
|
|
f42647 |
gdm_session_setup_for_user (GdmSession *self,
|
|
|
f42647 |
const char *service_name,
|
|
|
f42647 |
const char *username)
|
|
|
f42647 |
{
|
|
|
f42647 |
|
|
|
f42647 |
g_return_if_fail (GDM_IS_SESSION (self));
|
|
|
f42647 |
g_return_if_fail (username != NULL);
|
|
|
f42647 |
|
|
|
f42647 |
update_session_type (self);
|
|
|
f42647 |
|
|
|
f42647 |
gdm_session_select_user (self, username);
|
|
|
f42647 |
|
|
|
f42647 |
self->priv->is_program_session = FALSE;
|
|
|
f42647 |
initialize (self, service_name, self->priv->selected_user, NULL);
|
|
|
f42647 |
+ gdm_session_defaults_changed (self);
|
|
|
f42647 |
}
|
|
|
f42647 |
|
|
|
f42647 |
void
|
|
|
f42647 |
gdm_session_setup_for_program (GdmSession *self,
|
|
|
f42647 |
const char *service_name,
|
|
|
f42647 |
const char *username,
|
|
|
f42647 |
const char *log_file)
|
|
|
f42647 |
{
|
|
|
f42647 |
|
|
|
f42647 |
g_return_if_fail (GDM_IS_SESSION (self));
|
|
|
f42647 |
|
|
|
f42647 |
self->priv->is_program_session = TRUE;
|
|
|
f42647 |
initialize (self, service_name, username, log_file);
|
|
|
f42647 |
}
|
|
|
f42647 |
|
|
|
f42647 |
void
|
|
|
f42647 |
gdm_session_authenticate (GdmSession *self,
|
|
|
f42647 |
const char *service_name)
|
|
|
f42647 |
{
|
|
|
f42647 |
GdmSessionConversation *conversation;
|
|
|
f42647 |
|
|
|
f42647 |
g_return_if_fail (GDM_IS_SESSION (self));
|
|
|
f42647 |
|
|
|
f42647 |
conversation = find_conversation_by_name (self, service_name);
|
|
|
f42647 |
if (conversation != NULL) {
|
|
|
f42647 |
gdm_dbus_worker_call_authenticate (conversation->worker_proxy,
|
|
|
f42647 |
conversation->worker_cancellable,
|
|
|
f42647 |
(GAsyncReadyCallback) on_authenticate_cb,
|
|
|
f42647 |
conversation);
|
|
|
f42647 |
}
|
|
|
f42647 |
--
|
|
|
f42647 |
2.14.3
|
|
|
f42647 |
|