Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gdm for openSUSE:Factory checked in at 2026-02-01 22:02:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gdm (Old) and /work/SRC/openSUSE:Factory/.gdm.new.1995 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gdm" Sun Feb 1 22:02:06 2026 rev:295 rq:1330183 version:49.2 Changes: -------- --- /work/SRC/openSUSE:Factory/gdm/gdm.changes 2025-11-27 15:19:38.328115927 +0100 +++ /work/SRC/openSUSE:Factory/.gdm.new.1995/gdm.changes 2026-02-01 22:03:15.691102368 +0100 @@ -1,0 +2,7 @@ +Wed Jan 28 05:21:04 UTC 2026 - Xiaoguang Wang <[email protected]> + +- Add gdm-initial-vt-tty1.patch: the greeter session runs on tty1 + when environment variable GDM_INITIAL_VT_TTY1 is defined + (bsc#1252888). + +------------------------------------------------------------------- New: ---- gdm-initial-vt-tty1.patch ----------(New B)---------- New: - Add gdm-initial-vt-tty1.patch: the greeter session runs on tty1 when environment variable GDM_INITIAL_VT_TTY1 is defined ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdm.spec ++++++ --- /var/tmp/diff_new_pack.oyKmyC/_old 2026-02-01 22:03:17.963198808 +0100 +++ /var/tmp/diff_new_pack.oyKmyC/_new 2026-02-01 22:03:17.979199487 +0100 @@ -1,7 +1,7 @@ # # spec file for package gdm # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -74,6 +74,8 @@ ### NOTE: Keep please SLE-only patches at bottom (starting on 1000). # PATCH-FIX-SLE gdm-disable-gnome-initial-setup.patch bnc#1067976 [email protected] -- Disable gnome-initial-setup runs before gdm, g-i-s will only serve for CJK people to choose the input-method after login. Patch1000: gdm-disable-gnome-initial-setup.patch +# PATCH-FIX-SLE gdm-initial-vt-tty1.patch bsc#1252888 [email protected] -- Greeter session runs on tty1 +Patch1001: gdm-initial-vt-tty1.patch BuildRequires: check-devel # dconf and gnome-session-core are needed for directory ownership ++++++ gdm-initial-vt-tty1.patch ++++++ Index: gdm-49.2/daemon/gdm-local-display-factory.c =================================================================== --- gdm-49.2.orig/daemon/gdm-local-display-factory.c +++ gdm-49.2/daemon/gdm-local-display-factory.c @@ -585,11 +585,12 @@ on_display_status_changed (GdmDisplay /* if this is a local display, ensure that we get a login * screen when the user logs out. */ + int initial_vt_target = (getenv("GDM_INITIAL_VT_TTY1") != NULL) ? 1 : GDM_INITIAL_VT; if (is_local && ((g_strcmp0 (session_class, "greeter") != 0 && (!seat_active_session || g_strcmp0(session_id, seat_active_session) == 0)) || #if defined(ENABLE_USER_DISPLAY_SERVER) - (g_strcmp0 (seat_id, "seat0") == 0 && factory->active_vt == GDM_INITIAL_VT) || + (g_strcmp0 (seat_id, "seat0") == 0 && factory->active_vt == initial_vt_target) || #endif g_strcmp0 (seat_id, "seat0") != 0)) { /* reset num failures */ @@ -1352,7 +1353,8 @@ on_vt_changed (GIOChannel *source, * on it (unless a login screen is already running elsewhere, then * jump to that login screen) */ - if (factory->active_vt != GDM_INITIAL_VT) { + int initial_vt_target = (getenv("GDM_INITIAL_VT_TTY1") != NULL) ? 1 : GDM_INITIAL_VT; + if (factory->active_vt != initial_vt_target) { g_debug ("GdmLocalDisplayFactory: active VT is not initial VT, so ignoring"); return G_SOURCE_CONTINUE; } Index: gdm-49.2/daemon/gdm-session-worker.c =================================================================== --- gdm-49.2.orig/daemon/gdm-session-worker.c +++ gdm-49.2/daemon/gdm-session-worker.c @@ -1307,7 +1307,8 @@ gdm_session_worker_initialize_pam (GdmSe if (g_strcmp0 (seat_id, "seat0") == 0 && worker->seat0_has_vts) { /* Temporarily set PAM_TTY with the login VT, PAM_TTY will be reset with the users VT right before the user session is opened */ - g_snprintf (tty_string, 256, "/dev/tty%d", GDM_INITIAL_VT); + int initial_vt_target = (getenv("GDM_INITIAL_VT_TTY1") != NULL) ? 1 : GDM_INITIAL_VT; + g_snprintf (tty_string, 256, "/dev/tty%d", initial_vt_target); pam_set_item (worker->pam_handle, PAM_TTY, tty_string); } @@ -1813,14 +1814,15 @@ jump_back_to_initial_vt (GdmSessionWorke if (worker->session_vt == 0) return; - if (worker->session_vt == GDM_INITIAL_VT) + int initial_vt_target = (getenv("GDM_INITIAL_VT_TTY1") != NULL) ? 1 : GDM_INITIAL_VT; + if (worker->session_vt == initial_vt_target) return; if (g_strcmp0 (worker->display_seat_id, "seat0") != 0 || !worker->seat0_has_vts) return; #ifdef ENABLE_USER_DISPLAY_SERVER - jump_to_vt (worker, GDM_INITIAL_VT); + jump_to_vt (worker, initial_vt_target); worker->session_vt = 0; #endif } @@ -2258,7 +2260,8 @@ set_up_for_new_vt (GdmSessionWorker *wor * the initial VT as "in use" so it doesn't get returned * by VT_OPENQRY * */ - g_snprintf (tty_string, sizeof (tty_string), "/dev/tty%d", GDM_INITIAL_VT); + int initial_vt_target = (getenv("GDM_INITIAL_VT_TTY1") != NULL) ? 1 : GDM_INITIAL_VT; + g_snprintf (tty_string, sizeof (tty_string), "/dev/tty%d", initial_vt_target); initial_vt_fd = open (tty_string, O_RDWR | O_NOCTTY); if (initial_vt_fd < 0) { @@ -2267,7 +2270,7 @@ set_up_for_new_vt (GdmSessionWorker *wor } if (worker->display_is_initial) { - session_vt = GDM_INITIAL_VT; + session_vt = initial_vt_target; } else { /* Typically VT_OPENQRY is called on /dev/tty0, but we already
