mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
fix(#7): cannot found XDG_SESSION_TYPE
This commit is contained in:
parent
f573b217db
commit
f4a8461ac7
@ -463,10 +463,10 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
fn is_wayland() -> bool {
|
fn is_wayland() -> bool {
|
||||||
std::env::var("XDG_SESSION_TYPE")
|
std::env::var("XDG_SESSION_TYPE")
|
||||||
.unwrap()
|
.unwrap_or_default()
|
||||||
.eq_ignore_ascii_case("wayland")
|
.eq_ignore_ascii_case("wayland")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_snap() -> bool {
|
fn is_snap() -> bool {
|
||||||
std::env::var("SNAP").unwrap_or(String::new()).len() > 0
|
std::env::var("SNAP").unwrap_or_default().len() > 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user