Re: interacting with logind to detect user idle time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, May 22, 2019, 12:37 Germano Massullo <germano.massullo@xxxxxxxxx> wrote:
Il giorno mer 22 mag 2019 alle ore 11:17 Mantas Mikulėnas
<grawity@xxxxxxxxx> ha scritto:
> If your program is already X11-based, you could use the screensaver protocol to get idle status and forward it to logind.

BOINC client is just a service, and it runs on machines that can run
X11, Wayland, or no graphical session.
So if with screensaver protocol you meant XScreensaver API, this
unfortunately will not fit my needs. Perhaps instead of using a single
solution for all of them I have to write some code that will adapt at
least to the main desktop environments, by asking to them the user
idle time.

Better to have a small 'agent' program that runs within the desktop environment and reports idleness to logind like the DE is supposed to. 

That program would be able to use X11 to determine session idleness, and it'd work for all DEs and wouldn't be limited to BOINC either.

Having BOINC itself dig into the internals of every DE is ... not optimal.


Second question: perhaps can be useful if I start a topic in GNOME /
KDE Plasma development mailing lists asking them to make patches that
will let systemd-logind know about user idle time. By doing this,
Linux distro world could use systemd-logind as single solution for
detecting user idle time, making easier the work of third party
developers

Hmm, doesn't GNOME 3 already do this?


_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux