match more environments
forgot about the BSDs, which i guess all have KDE available for them too? never used BSD myself!
This commit is contained in:
parent
46dea2b607
commit
3d7c4f63ea
|
@ -40,13 +40,14 @@ fn is_x11_compositor_skipping_problematic() -> bool {
|
|||
configurations could be added here and/or this could/should be updated with a better method
|
||||
to check for this.
|
||||
*/
|
||||
if std::env::consts::OS == "linux" {
|
||||
match std::env::var("XDG_SESSION_DESKTOP") {
|
||||
Ok(value) => value.eq_ignore_ascii_case("KDE"),
|
||||
Err(_) => false
|
||||
}
|
||||
} else {
|
||||
false
|
||||
match std::env::consts::OS {
|
||||
"linux"|"freebsd"|"netbsd"|"openbsd" => {
|
||||
match std::env::var("XDG_SESSION_DESKTOP") {
|
||||
Ok(value) => value.eq_ignore_ascii_case("KDE"),
|
||||
Err(_) => false
|
||||
}
|
||||
},
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue