fix last pr

This commit is contained in:
RustDesk
2022-12-08 23:05:51 +08:00
committed by GitHub
parent 22d071d2ef
commit 8704e15738

View File

@@ -65,20 +65,12 @@ fn get_display_server_of_session(session: &str) -> String {
{
if xorg_results.trim_end().to_string() != "" {
// If it is, manually return "x11", otherwise return tty
"x11".to_owned()
} else {
display_server
return "x11".to_owned()
}
} else {
// If any of these commands fail just fall back to the display server
display_server
}
} else {
display_server
}
} else {
"".to_owned()
}
display_server
} else {
"".to_owned()
};