Systemd code path in act-user-manager is quite obfuscated.
Submitted by Marius Vollmer
Assigned to Matthias Clasen
The systemd specific code path in act-user-manager is threaded into the middle of the state machines of load_seat_incrementally and load_new_session_incrementally.
I think it would be much cleaner to just branch once for systemd in load_idle or similar and just use its synchronous API in a straight line. If you feel the same, I'd be happy to make a patch.