Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-23 Thread Germano Massullo
I have sent the following message to various desktop environment mailing lists SUBJECT: Proposal: passing user idle time to systemd-logind KDE Plasma: https://mail.kde.org/pipermail/plasma-devel/2019-May/098194.html GNOME: https://mail.gnome.org/archives/desktop-devel-list/2019-May/msg00088.html

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-22 Thread Germano Massullo
Il giorno mer 22 mag 2019 alle ore 11:41 Mantas Mikulėnas ha scritto: > On Wed, May 22, 2019, 12:37 Germano Massullo > wrote: >> 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

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-22 Thread Mantas Mikulėnas
On Wed, May 22, 2019, 12:37 Germano Massullo wrote: > Il giorno mer 22 mag 2019 alle ore 11:17 Mantas Mikulėnas > 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

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-22 Thread Germano Massullo
Il giorno mer 22 mag 2019 alle ore 11:17 Mantas Mikulėnas 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

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-22 Thread Mantas Mikulėnas
On Wed, May 22, 2019, 12:13 Germano Massullo wrote: > Good day. > I have noticed that on many Linux distributions with different desktop > environments, the properties > IdleSinceHint > IdleSinceHintMonotonic > are always equal to zero. This happens even if you try to use a sleep > in order to

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-22 Thread Germano Massullo
Good day. I have noticed that on many Linux distributions with different desktop environments, the properties IdleSinceHint IdleSinceHintMonotonic are always equal to zero. This happens even if you try to use a sleep in order to simulate a kind of user inactivity. What is this happening? I have

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-17 Thread Germano Massullo
Perfect, thank you very much! ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-17 Thread Lennart Poettering
On Do, 16.05.19 17:12, Germano Massullo (germano.massu...@gmail.com) wrote: > To do practise I am using NetworkManager example [1] > All macros passed as arguments to functions > g_dbus_proxy_call_sync > g_dbus_proxy_new_for_bus_sync > are implemented at [2]. > Is there an equivalent of [2] for

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-16 Thread Germano Massullo
To do practise I am using NetworkManager example [1] All macros passed as arguments to functions g_dbus_proxy_call_sync g_dbus_proxy_new_for_bus_sync are implemented at [2]. Is there an equivalent of [2] for logind? I made a quick search into systemd repository [3] but I am getting too many

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-14 Thread Lennart Poettering
On Di, 14.05.19 11:32, Germano Massullo (germano.massu...@gmail.com) wrote: > Il giorno lun 13 mag 2019 alle ore 10:00 Lennart Poettering > ha scritto: > > Note that it only works correctly on desktops that support it. > > Thank you for your reply. Why does it work only on desktop > environments

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-14 Thread Germano Massullo
Il giorno lun 13 mag 2019 alle ore 10:00 Lennart Poettering ha scritto: > Note that it only works correctly on desktops that support it. Thank you for your reply. Why does it work only on desktop environments that support it? I believed that it provides idle infos to the D.E. not viceversa

Re: [systemd-devel] interacting with logind to detect user idle time

2019-05-13 Thread Lennart Poettering
On Mi, 08.05.19 14:37, Germano Massullo (germano.massu...@gmail.com) wrote: > Hi, I am doing some practice with writing software using GDBus API. I > need it to implement on BOINC client, user(s) idle time detection by > retrieving such info from logind. > In order to retrieve user idle time I

[systemd-devel] interacting with logind to detect user idle time

2019-05-08 Thread Germano Massullo
Hi, I am doing some practice with writing software using GDBus API. I need it to implement on BOINC client, user(s) idle time detection by retrieving such info from logind. In order to retrieve user idle time I was thinking of using the property IdleSinceHint. What do you think about? Best