Skip to content

modules/logind: be more specific when creating the login monitor

We're only interested in notifications for user state changes, so we should better be more specific about it when creating the systemd login monitor.

This avoids issues with sd_login_monitor_new() returning EINVAL if systemd-machined is not running (and thus /run/systemd/machines does not exist).

Merge request reports