]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: do TTY idle logic only for sessions marked as "tty"
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2023 10:09:20 +0000 (11:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2024 14:40:27 +0000 (15:40 +0100)
commit20604ff219cf4027f4ee9ca9ba7c0b9e72aec448
tree7271917d5e6318c72d7b806c72865098850bbb7e
parentc16167ea10241292aa6d0c1cdc31e525da21e754
logind: do TTY idle logic only for sessions marked as "tty"

Otherwise things might be weird, because background sessions might
become "idle", wich doesn#t really make much sense.

This shouldn't change much in 99% of the cases, but slightly corrects
behaviour as it ensures only "primary"/"foreground" sessions get the
idle logic, i.e. where a user exists that could actually make it
non-idle.
src/login/logind-session.c