mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
Update linux.rs
This commit is contained in:
parent
f9d0974fc5
commit
f3f48d3cf4
@ -44,7 +44,7 @@ fn get_display_server_of_session(session: &str) -> String {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// loginctl has not given the expected output. try something else.
|
// loginctl has not given the expected output. try something else.
|
||||||
if let OK(sestype) = std::env::var("XDG_SESSION_TYPE") {
|
if let Ok(sestype) = std::env::var("XDG_SESSION_TYPE") {
|
||||||
return sestype.to_owned();
|
return sestype.to_owned();
|
||||||
}
|
}
|
||||||
// If the session is not a tty, then just return the type as usual
|
// If the session is not a tty, then just return the type as usual
|
||||||
|
Loading…
Reference in New Issue
Block a user