From 8c55f5bb687703d5c2314652c8ee4d7a729030676dbf1391a571216a0625db9b Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Sat, 30 Nov 2013 10:12:49 +0000 Subject: [PATCH] Accepting request 208810 from home:lbssousa:branches:Base:System - Add U_logind_revert_lazy_session_activation_on_non_vt_seats.patch * See: http://cgit.freedesktop.org/systemd/systemd/commit/?id=3fdb2494c1e24c0a020f5b54022d2c751fd26f50 OBS-URL: https://build.opensuse.org/request/show/208810 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=468 --- ...y_session_activation_on_non_vt_seats.patch | 26 +++++++++++++++++++ systemd.changes | 6 +++++ systemd.spec | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 U_logind_revert_lazy_session_activation_on_non_vt_seats.patch diff --git a/U_logind_revert_lazy_session_activation_on_non_vt_seats.patch b/U_logind_revert_lazy_session_activation_on_non_vt_seats.patch new file mode 100644 index 00000000..fca524f5 --- /dev/null +++ b/U_logind_revert_lazy_session_activation_on_non_vt_seats.patch @@ -0,0 +1,26 @@ +From 3fdb2494c1e24c0a020f5b54022d2c751fd26f50 Mon Sep 17 00:00:00 2001 +From: David Herrmann +Date: Thu, 28 Nov 2013 09:52:18 +0000 +Subject: login: revert lazy session-activation on non-VT seats + +Existing applications like gdm already depend on new sessions to get +immediately activated on seats without VTs. Fixes a bug reported as: + [systemd-devel] systemd 208:trouble with inactive user sessions at non-seat0 seats + +This patch restores the original behavior. We either need to add a new +flag for session-creation or some other heuristic to avoid activating new +sessions in the future. +--- +--- a/src/login/logind-seat.c 2013-11-28 11:30:49.624623090 -0200 ++++ b/src/login/logind-seat.c 2013-11-28 11:31:46.668792391 -0200 +@@ -420,8 +420,8 @@ + seat_send_changed(s, "Sessions\0"); + + /* On seats with VTs, the VT logic defines which session is active. On +- * seats without VTs, we automatically activate the first session. */ +- if (!seat_has_vts(s) && !s->active) ++ * seats without VTs, we automatically activate new sessions. */ ++ if (!seat_has_vts(s)) + seat_set_active(s, session); + + return 0; diff --git a/systemd.changes b/systemd.changes index 39296aa2..2171b924 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 28 10:25:58 UTC 2013 - lbsousajr@gmail.com + +- Add U_logind_revert_lazy_session_activation_on_non_vt_seats.patch + * See: http://cgit.freedesktop.org/systemd/systemd/commit/?id=3fdb2494c1e24c0a020f5b54022d2c751fd26f50 + ------------------------------------------------------------------- Tue Nov 26 15:12:58 UTC 2013 - werner@suse.de diff --git a/systemd.spec b/systemd.spec index d6abe492..3ec76694 100644 --- a/systemd.spec +++ b/systemd.spec @@ -262,6 +262,7 @@ Patch1010: 1010-do-not-install-sulogin-unit-with-poweroff.patch Patch1011: 1011-check-4-valid-kmsg-device.patch # PATCH-FIX-PSTREAM 1012-pam_systemd_do_override_XDG_RUNTIME_DIR_of_the_original_user.patch Patch1012: 1012-pam_systemd_do_override_XDG_RUNTIME_DIR_of_the_original_user.patch +Patch1013: U_logind_revert_lazy_session_activation_on_non_vt_seats.patch %description Systemd is a system and service manager, compatible with SysV and LSB @@ -540,6 +541,7 @@ cp %{SOURCE7} m4/ %patch1010 -p1 %patch1011 -p1 %patch1012 -p1 +%patch1013 -p1 # ensure generate files are removed rm -f units/emergency.service