fix last pr
This commit is contained in:
parent
22d071d2ef
commit
8704e15738
@ -65,20 +65,12 @@ fn get_display_server_of_session(session: &str) -> String {
|
|||||||
{
|
{
|
||||||
if xorg_results.trim_end().to_string() != "" {
|
if xorg_results.trim_end().to_string() != "" {
|
||||||
// If it is, manually return "x11", otherwise return tty
|
// If it is, manually return "x11", otherwise return tty
|
||||||
"x11".to_owned()
|
return "x11".to_owned()
|
||||||
} else {
|
|
||||||
display_server
|
|
||||||
}
|
}
|
||||||
} 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 {
|
} else {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user