blue-recorder/src/utils.rs
Ask

9 lines
227 B
Rust

{ca07b5234f734d4d00773f428d6222d7b20e98b4 true 227 utils.rs 0xc001db9960}

pub fn is_wayland() -> bool {
std::env::var("XDG_SESSION_TYPE")
.unwrap_or_default()
.eq_ignore_ascii_case("wayland")
}
pub fn is_snap() -> bool {
!std::env::var("SNAP").unwrap_or_default().is_empty()
}