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.
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
can you post the output of
╎❯ loginctl show-session
╎❯ loginctl session-status $XDG_SESSION_ID
Created attachment 125506 [details]
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:
It works correctly with Fedora 23 Live:
is the output of the commands from after control-center showed the wrong thing?
-- 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.