diff --git a/gdm-xvnc-start-session-failed.patch b/gdm-xvnc-start-session-failed.patch new file mode 100644 index 0000000..5a8a311 --- /dev/null +++ b/gdm-xvnc-start-session-failed.patch @@ -0,0 +1,16 @@ +diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c +index d6c39c2..52d9718 100644 +--- a/daemon/gdm-session.c ++++ b/daemon/gdm-session.c +@@ -3431,8 +3431,9 @@ gdm_session_get_display_mode (GdmSession *self) + self->is_program_session? "yes" : "no", + self->display_seat_id); + +- if (g_strcmp0 (self->display_seat_id, "seat0") != 0) { +- return GDM_SESSION_DISPLAY_MODE_LOGIND_MANAGED; ++ if (g_strcmp0 (self->display_seat_id?: "", "") == 0 ++ && g_strcmp0 (self->session_type?: "", "") == 0) { ++ return GDM_SESSION_DISPLAY_MODE_REUSE_VT; + } + + #ifdef ENABLE_USER_DISPLAY_SERVER diff --git a/gdm.changes b/gdm.changes index a856bb6..6bb4950 100644 --- a/gdm.changes +++ b/gdm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 22 01:17:18 UTC 2024 - Xiaoguang Wang + +- Add gdm-xvnc-start-session-failed.patch: None seat0 session runs + without running launcher(bsc#1219205 glgo#GNOME/gdm#909). + ------------------------------------------------------------------- Wed Feb 21 10:51:12 UTC 2024 - Alynx Zhou diff --git a/gdm.spec b/gdm.spec index 85b97e2..27f9886 100644 --- a/gdm.spec +++ b/gdm.spec @@ -72,6 +72,8 @@ Patch4: gdm-xauthlocalhostname.patch Patch5: gdm-switch-to-tty1.patch # PATCH-FIX-OPENSUSE gdm-initial-setup-hardening.patch boo#1140851, glgo#GNOME/gnome-initial-setup#76 fezhang@suse.com -- Prevent gnome-initial-setup running if any regular user has perviously logged into the system Patch6: gdm-initial-setup-hardening.patch +# PATCH-FIX-UPSTREAM gdm-xvnc-start-session-failed.patch bsc#1219205 glgo#GNOME/gdm#909 xwang@suse.com -- None seat0 session runs without running launcher +Patch7: gdm-xvnc-start-session-failed.patch ### NOTE: Keep please SLE-only patches at bottom (starting on 1000). # PATCH-FIX-SLE gdm-disable-gnome-initial-setup.patch bnc#1067976 qzhao@suse.com -- Disable gnome-initial-setup runs before gdm, g-i-s will only serve for CJK people to choose the input-method after login. @@ -251,6 +253,7 @@ running display manager. %patch -P 4 -p1 %patch -P 5 -p1 %patch -P 6 -p1 +%patch -P 7 -p1 %endif %ifarch s390 s390x