Commit c5419a70 authored by Martin Pitt's avatar Martin Pitt
Browse files

Backport fix for lazy session-activation on non-seat0 seats

LP: #1355331
parent b9132b41
......@@ -3,6 +3,8 @@ systemd (208-8) UNRELEASED; urgency=medium
* Fix duplicate line in copyright. (Closes: #756899)
* Drop --disable-xattr configure option for udeb, does not exist any more.
* Add Turkish debconf translations. Thanks Mert Dirik! (Closes: #757498)
* Backport fix for lazy session-activation on non-seat0 seats.
(LP: #1355331)
-- Martin Pitt <mpitt@debian.org> Thu, 07 Aug 2014 08:31:38 +0200
......
From 3fdb2494c1e24c0a020f5b54022d2c751fd26f50 Mon Sep 17 00:00:00 2001
From: David Herrmann <dh.herrmann@gmail.com>
Date: Thu, 28 Nov 2013 10:52:18 +0100
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.
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c
index b30c4ce..ca0e8d7 100644
--- a/src/login/logind-seat.c
+++ b/src/login/logind-seat.c
@@ -413,8 +413,8 @@ int seat_attach_session(Seat *s, Session *session) {
seat_send_changed(s, "Sessions", NULL);
/* 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;
--
cgit v0.10.2
......@@ -480,6 +480,7 @@ util-treat-fuse.sshfs-as-a-network-filesystem.patch
## Cherry-picked from trunk
build-sys-use-glibc-s-xattr-support-instead-of-requi.patch
logind-revert-lazy-session-activation.patch
## Debian specific patches:
Add-back-support-for-Debian-specific-config-files.patch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment