Proposal: passing user idle time to systemd-logind
andre42m at gmail.com
Tue May 28 03:37:30 CEST 2019
That seems an interesting feature and would be great to have in Xfce.
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
to get this logic into xfce4-session and toggle SetIdleHint accordingly.
Please file a bug at http://bugzilla.xfce.org/ requesting this feature.
On Wed, May 22, 2019 at 1:27 PM Germano Massullo <germano.massullo at gmail.com>
> Hello, I am writing to you to propose the following reasoning, hoping
> that it can help making easier (just a bit) third parties development
> work on Linux.
> I am currently developing BOINC client user idle time detection on
> Linux systems (both graphical or tty sessions)
> After some studies I started writing a little piece of code that that
> is able to print on standard output the user idle time by retrieving
> it from systemd-logind IdleSinceHint property (that is exposed on
> DBus). By the way I found out that this value was always 0 , so I
> asked why . I have been told that logind relies on the desktop
> environment to pass this information.
> Many d.e. expose user idle time to their own DBus path, (i.e.
> org.gnome.Mutter.IdleMonitor), so I will be forced to write code that
> depends on the specific desktop environment. Since:
> 1) systemd-logind is just ready for exposing user idle time;
> 2) for a developer writing code for Linux it would be much easier to
> retrieve user idle time from a unique place rather than having to deal
> with all various desktop environments;
> I would like to ask you what do you think about passing the user idle
> time to logind   ?
> Best regards
> : you can try with system console command
> $ sleep 2 && gdbus introspect --system --dest org.freedesktop.login1
> --object-path /org/freedesktop/login1 | grep IdleSinceHint
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xfce4-dev