logind: add CanIdle + CanLock dbus properties to session object
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Oct 2024 16:08:19 +0000 (18:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Oct 2024 16:44:05 +0000 (18:44 +0200)
commitbd91f23acfecc92ede6965d752540a758b3e6c79
tree9b5b614400804dbb62559651f65192133f23f53d
parent119252343e891eb7673fab3911469b3111e61ae5
logind: add CanIdle + CanLock dbus properties to session object

Clients should be able to know if the idle logic is available on a
session without secondary knowledge about the session class. Let's hence
expose a property for that.

Similar for the screen lock concept.

Fixes: #34844
man/org.freedesktop.login1.xml
src/login/logind-session-dbus.c
test/units/TEST-35-LOGIN.sh