<div dir="ltr"><div dir="ltr"><div>Hi Germano,</div><div>That seems an interesting feature and would be great to have in Xfce.</div><div>I don't know xfce4-session and xfce4-power-manager sources very well, but I think the latter already watches when the user is idle, so it seems <span class="gmail-content"><span class="gmail-text">straightforward to get this logic into xfce4-session and toggle<span class="gmail-content"><span class="gmail-text"> SetIdleHint accordingly.<br></span></span></span></span></div><div><span class="gmail-content"><span class="gmail-text"><span class="gmail-content"><span class="gmail-text"></span></span></span></span></div><div><span class="gmail-content"><span class="gmail-text"><span class="gmail-content"><span class="gmail-text">Please file a bug at <a href="http://bugzilla.xfce.org/">http://bugzilla.xfce.org/</a> requesting this feature.<br></span></span></span></span></div><div><br></div><div>Cheers,<br></div><div>Andre Miranda<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 22, 2019 at 1:27 PM Germano Massullo <<a href="mailto:germano.massullo@gmail.com">germano.massullo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello, I am writing to you to propose the following reasoning, hoping<br>
that it can help making easier (just a bit) third parties development<br>
work on Linux.<br>
I am currently developing BOINC client user idle time detection on<br>
Linux systems (both graphical or tty sessions)<br>
After some studies I started writing a little piece of code that that<br>
is able to print on standard output the user idle time by retrieving<br>
it from systemd-logind IdleSinceHint property (that is exposed on<br>
DBus). By the way I found out that this value was always 0 [1], so I<br>
asked why [2]. I have been told that logind relies on the desktop<br>
environment to pass this information.<br>
Many d.e. expose user idle time to their own DBus path, (i.e.<br>
org.gnome.Mutter.IdleMonitor), so I will be forced to write code that<br>
depends on the specific desktop environment. Since:<br>
1) systemd-logind is just ready for exposing user idle time;<br>
2) for a developer writing code for Linux it would be much easier to<br>
retrieve user idle time from a unique place rather than having to deal<br>
with all various desktop environments;<br>
I would like to ask you what do you think about passing the user idle<br>
time to logind [3] [4] ?<br>
<br>
Best regards<br>
<br>
[1]: you can try with system console command<br>
$ sleep 2 && gdbus introspect --system --dest org.freedesktop.login1<br>
--object-path /org/freedesktop/login1 | grep IdleSinceHint<br>
[2]: <a href="https://lists.freedesktop.org/archives/systemd-devel/2019-May/042726.html" rel="noreferrer" target="_blank">https://lists.freedesktop.org/archives/systemd-devel/2019-May/042726.html</a><br>
[3]: <a href="https://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments/" rel="noreferrer" target="_blank">https://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments/</a><br>
[4]: <a href="https://www.freedesktop.org/wiki/Software/systemd/writing-display-managers/" rel="noreferrer" target="_blank">https://www.freedesktop.org/wiki/Software/systemd/writing-display-managers/</a><br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org" target="_blank">Xfce4-dev@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></blockquote></div></div>