<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 22, 2019, 12:37 Germano Massullo <<a href="mailto:germano.massullo@gmail.com">germano.massullo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Il giorno mer 22 mag 2019 alle ore 11:17 Mantas Mikulėnas<br>
<<a href="mailto:grawity@gmail.com" target="_blank" rel="noreferrer">grawity@gmail.com</a>> ha scritto:<br>
> If your program is already X11-based, you could use the screensaver protocol to get idle status and forward it to logind.<br>
<br>
BOINC client is just a service, and it runs on machines that can run<br>
X11, Wayland, or no graphical session.<br>
So if with screensaver protocol you meant XScreensaver API, this<br>
unfortunately will not fit my needs. Perhaps instead of using a single<br>
solution for all of them I have to write some code that will adapt at<br>
least to the main desktop environments, by asking to them the user<br>
idle time.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Better to have a small 'agent' program that runs within the desktop environment and reports idleness to logind like the DE is supposed to. </div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Having BOINC itself dig into the internals of every DE is ... not optimal.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Second question: perhaps can be useful if I start a topic in GNOME /<br>
KDE Plasma development mailing lists asking them to make patches that<br>
will let systemd-logind know about user idle time. By doing this,<br>
Linux distro world could use systemd-logind as single solution for<br>
detecting user idle time, making easier the work of third party<br>
developers<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Hmm, doesn't GNOME 3 already do this?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a></blockquote></div></div></div>