"/org/freedesktop/login1/seat/self" path triggers seat-finding code path in logind,
which currently relies on getting the session based on caller's PID.
This behaviour is deprecated in logind as it doesn't work eg. with systemd user units,
which run outside of user session.
We check for "seat0" in logind_change_vt() already as introduced in 47985d2dc5
,
so hard-coding it here is not a problem, otherwise sd_session_get_seat() could be used.
master
parent
461c4f58a6
commit
e04e1ba197
Loading…
Reference in new issue