[systemd-devel] interacting with logind to detect user idle time
Lennart Poettering
lennart at poettering.net
Tue May 14 09:37:04 UTC 2019
On Di, 14.05.19 11:32, Germano Massullo (germano.massullo at gmail.com) wrote:
> Il giorno lun 13 mag 2019 alle ore 10:00 Lennart Poettering
> <lennart at poettering.net> ha scritto:
> > Note that it only works correctly on desktops that support it.
>
> Thank you for your reply. Why does it work only on desktop
> environments that support it? I believed that it provides idle infos
> to the D.E. not viceversa
> According to this seems that it would not be able to detect user idle
> time on headless systems where users generally operate by SSH.
Desktop environments need to tell us when the user last did something,
if they don#t we really don't know.
For tty logins we can watch the last access time of the tty to know
when the user last did something. inotify will notify us about that
nicely.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list