It seems that act_user_is_logged_in/act_user_is_logged_in_anywhere doesn't work in recent versions (it always returns FALSE). At least on Fedora 24 (accountsservice-0.6.40-4.fc24.x86_64), regardless which session (X11/Wayland) is used if it is relevant. It can be simply tested using gnome-control-center's User Accounts panel, where Last Login field should contain "Logged in" if act_user_is_logged_in returns TRUE.
works here. selinux maybe? does running $ loginctl show your sessoin?
It happens regardless SELinux status. loginctl shows sessions for my user. Do you see "Logged in" in the panel? I can't see it even on Fedora 24 live, however Fedora 23 works as expected. It doesn't work if I build gnome-control-center from F23 on F24, so I suppose that something else is wrong. Isn't there any testing tool for accountsservice? D-Bus API seem don't expose all properties...
yea it shows: Last Login Logged In here in control-center ╎❯ rpm -q control-center accountsservice control-center-3.20.1-1.fc24.x86_64 accountsservice-0.6.40-4.fc24.x86_64 can you post the output of ╎❯ loginctl show-session and ╎❯ loginctl session-status $XDG_SESSION_ID ?
Created attachment 125506 [details] outputs It is interesting. I saw "Logged in" immediately after system reboot, but I've opened the panel after few minutes and last login time was shown instead of it. I haven't got any idea why. I am not able to reproduce this behavior by another reboots and "Logged in" isn't shown at all. I am attaching outputs from the commands you wanted... I have never seen "Logged in" with Fedora 24 Live, so you can play with it: https://download.fedoraproject.org/pub/fedora/linux/releases/24/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-24-1.2.iso It works correctly with Fedora 23 Live: https://dl.fedoraproject.org/pub/fedora/linux/releases/23/Workstation/x86_64/iso/Fedora-Live-Workstation-x86_64-23-10.iso
is the output of the commands from after control-center showed the wrong thing?
Yes
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.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.freedesktop.org/accountsservice/accountsservice/issues/32.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.