Unverified Commit f3f48d3c authored by sirtemporary's avatar sirtemporary Committed by GitHub

Update linux.rs

parent f9d0974f
......@@ -44,7 +44,7 @@ fn get_display_server_of_session(session: &str) -> String {
}
} 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();
}
// If the session is not a tty, then just return the type as usual
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment