! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Proposal: passing user idle time to systemd-logind
Status:
RESOLVED: MOVED
Product:
Xfce4-session
Component:
General

Comments

Description Germano Massullo 2019-05-28 15:24:21 CEST
Copy of discussion https://mail.xfce.org/pipermail/xfce4-dev/2019-May/032257.html


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 [1], so I
asked why [2]. 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 [3] [4] ?

Best regards

[1]: you can try with system console command
$ sleep 2 && gdbus introspect --system --dest org.freedesktop.login1
--object-path /org/freedesktop/login1 | grep IdleSinceHint
[2]: https://lists.freedesktop.org/archives/systemd-devel/2019-May/042726.html
[3]: https://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments/
[4]: https://www.freedesktop.org/wiki/Software/systemd/writing-display-managers/
Comment 1 Git Bot editbugs 2020-05-26 00:50:38 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-session/-/issues/56.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15491

Reported by:
Germano Massullo
Reported on: 2019-05-28
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information