mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 09:28:18 +02:00
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).
This commit is contained in:
parent
7b8e3e8088
commit
8af6f3df1c
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ wp_logind_enable (WpPlugin * plugin, WpTransition * transition)
|
|||
WpLogind *self = WP_LOGIND (plugin);
|
||||
int res = 0;
|
||||
|
||||
if ((res = sd_login_monitor_new (NULL, &self->monitor)) < 0) {
|
||||
if ((res = sd_login_monitor_new ("uid", &self->monitor)) < 0) {
|
||||
wp_transition_return_error (transition, g_error_new (G_IO_ERROR,
|
||||
g_io_error_from_errno (-res),
|
||||
"failed to start systemd logind monitor: %d (%s)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue