From dea1aff5089454137bda8509e505818b5ac7e7cd Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Mon, 15 Mar 2021 18:50:36 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/gdm.git#fb9039f0458fe12db6be6fdceef93a64b776cf92 --- ...ze-DBus-error-domain-before-resolvin.patch | 32 +++++++++++++++++++ gdm.spec | 8 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 0001-session-Initialize-DBus-error-domain-before-resolvin.patch diff --git a/0001-session-Initialize-DBus-error-domain-before-resolvin.patch b/0001-session-Initialize-DBus-error-domain-before-resolvin.patch new file mode 100644 index 0000000..bcc340e --- /dev/null +++ b/0001-session-Initialize-DBus-error-domain-before-resolvin.patch @@ -0,0 +1,32 @@ +From 198fa5aff65b48cb2b2598522b35b3defc16c61d Mon Sep 17 00:00:00 2001 +From: Benjamin Berg +Date: Wed, 10 Mar 2021 11:43:00 +0100 +Subject: [PATCH] session: Initialize DBus error domain before resolving errors + +We would not initialize the DBus error domain before we retrieved the +first error, but only did so to compare the error after receiving them. +This means that the first error we received will not be resolved +correctly, while all subsequent ones are resolved. + +Fix this by calling GDM_SESSION_WORKER_ERROR from gdm_session_class_init. +--- + daemon/gdm-session.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c +index a6f00b66..5576639a 100644 +--- a/daemon/gdm-session.c ++++ b/daemon/gdm-session.c +@@ -3998,6 +3998,9 @@ gdm_session_class_init (GdmSessionClass *session_class) + FALSE, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); + #endif ++ ++ /* Ensure we can resolve errors */ ++ GDM_SESSION_WORKER_ERROR; + } + + GdmSession * +-- +2.29.2 + diff --git a/gdm.spec b/gdm.spec index 95dd960..26f15fc 100644 --- a/gdm.spec +++ b/gdm.spec @@ -11,7 +11,7 @@ Name: gdm Epoch: 1 Version: 40~beta -Release: 1%{?dist} +Release: 2%{?dist} Summary: The GNOME Display Manager License: GPLv2+ @@ -19,6 +19,8 @@ URL: https://wiki.gnome.org/Projects/GDM Source0: http://download.gnome.org/sources/gdm/40/gdm-%{tarball_version}.tar.xz Source1: org.gnome.login-screen.gschema.override +Patch00001: 0001-session-Initialize-DBus-error-domain-before-resolvin.patch + # Downstream patches Patch80001: 0001-Honor-initial-setup-being-disabled-by-distro-install.patch Patch90001: 0001-data-add-system-dconf-databases-to-gdm-profile.patch @@ -308,6 +310,10 @@ fi %{_libdir}/pkgconfig/gdm-pam-extensions.pc %changelog +* Wed Mar 10 2021 Benjamin Berg - 1:40~beta-2 +- Add patch to fix issues with the first login after boot + Resolves: #1937308 + * Fri Feb 26 2021 Kalev Lember - 1:40~beta-1 - Update to 40.beta