XDG_SESSION_TYPE as final backup
This commit is contained in:
parent
b387bc1038
commit
cc482c589c
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ pub fn get_display_server() -> String {
|
|||
}
|
||||
}
|
||||
if session.is_empty() {
|
||||
"".to_owned()
|
||||
std::env::var("XDG_SESSION_TYPE").unwrap_or("x11".to_owned())
|
||||
} else {
|
||||
get_display_server_of_session(&session)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue