mirror of
https://github.com/rustdesk/hbb_common.git
synced 2025-07-03 00:17:17 +00:00
Ignore unspecified type session(s) when look through all active sessions
With modern systemd versions, there is a manager class session, which is of type "unspecified", for each logged-in / lingering user. Such session should be ignored when attempt to find an appropriate session from all (non-seated) sessions, otherwise it will prevent XDG_SESSION_TYPE (and its "x11" fallback) from being leveraged.
This commit is contained in:
parent
1ed5a469cf
commit
514ef6ac08
@ -175,7 +175,7 @@ fn _get_values_of_seat0(indices: &[usize], ignore_gdm_wayland: bool) -> Vec<Stri
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if d == "tty" {
|
if d == "tty" || d == "unspecified" {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
return line_values(indices, line);
|
return line_values(indices, line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user