diff -Nru gdm3-41~rc/debian/changelog gdm3-41~rc/debian/changelog --- gdm3-41~rc/debian/changelog 2021-09-09 14:57:41.000000000 +0000 +++ gdm3-41~rc/debian/changelog 2021-10-12 09:05:27.000000000 +0000 @@ -1,3 +1,11 @@ +gdm3 (41~rc-0ubuntu2) impish; urgency=medium + + * debian/patches/git_select_session.patch: + - backport an upstream fix for gdm sometime starting the wrong + session type and not respecting the user selection (lp: #1945008) + + -- Sebastien Bacher Tue, 12 Oct 2021 11:05:27 +0200 + gdm3 (41~rc-0ubuntu1) impish; urgency=medium * New upstream release: diff -Nru gdm3-41~rc/debian/patches/git_select_session.patch gdm3-41~rc/debian/patches/git_select_session.patch --- gdm3-41~rc/debian/patches/git_select_session.patch 1970-01-01 00:00:00.000000000 +0000 +++ gdm3-41~rc/debian/patches/git_select_session.patch 2021-10-12 08:50:45.000000000 +0000 @@ -0,0 +1,30 @@ +From ae75f642859dcfdcfcaaffc617ebe7a68cf0bed7 Mon Sep 17 00:00:00 2001 +From: Ray Strode +Date: Wed, 29 Sep 2021 11:03:41 -0400 +Subject: [PATCH] daemon: Infer session type from desktop file if user has no + saved session type + +The accountsservice user cache file can specify a session type +associated with the saved session. This is optional though. If one +isn't specified GDM needs to figure out the session type based on the +list of preferred session types for the system and the session file +itself. + +It was failing to do the latter, though. This commit fixes that. +--- + daemon/gdm-session.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c +index c1e2be008..4b709731d 100644 +--- a/daemon/gdm-session.c ++++ b/daemon/gdm-session.c +@@ -1036,6 +1036,8 @@ worker_on_saved_session_name_read (GdmDBusWorker *worker, + } + if (self->saved_session_type != NULL) + set_session_type (self, self->saved_session_type); ++ else ++ update_session_type (self); + } + + } diff -Nru gdm3-41~rc/debian/patches/series gdm3-41~rc/debian/patches/series --- gdm3-41~rc/debian/patches/series 2021-09-09 14:57:41.000000000 +0000 +++ gdm3-41~rc/debian/patches/series 2021-10-12 08:51:06.000000000 +0000 @@ -13,3 +13,4 @@ ubuntu/dont_set_language_env.patch ubuntu/prefer_ubuntu_session_fallback.patch ubuntu/XSession-Use-x-terminal-emulator-as-fallback-instead-of-x.patch +git_select_session.patch