[gdm] session: always update session type when reading saved session
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] session: always update session type when reading saved session
- Date: Mon, 9 Nov 2015 18:06:31 +0000 (UTC)
commit 1cc13883d332780e188a12e591c00e36e4501b9e
Author: Ray Strode <rstrode redhat com>
Date: Mon Nov 9 12:56:36 2015 -0500
session: always update session type when reading saved session
We previously only did it if the session name was different,
but now it's possible to have sessions of both types with the
same name.
https://bugzilla.gnome.org/show_bug.cgi?id=757715
daemon/gdm-session.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 8a2a97e..1d0de88 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -913,13 +913,13 @@ worker_on_saved_session_name_read (GdmDBusWorker *worker,
return;
}
+ update_session_type (self);
+
if (strcmp (session_name,
get_default_session_name (self)) != 0) {
g_free (self->priv->saved_session);
self->priv->saved_session = g_strdup (session_name);
- update_session_type (self);
-
if (self->priv->greeter_interface != NULL) {
gdm_dbus_greeter_emit_default_session_name_changed (self->priv->greeter_interface,
session_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]