mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +08:00
This commit is contained in:
parent
839e8180e0
commit
cc860b2906
@ -611,9 +611,7 @@ pub fn get_env_var(k: &str) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn is_flatpak() -> bool {
|
fn is_flatpak() -> bool {
|
||||||
std::env::var("FLATPAK_SANDBOX_DIR").is_ok() ||
|
std::path::PathBuf::from("/.flatpak-info").exists()
|
||||||
std::env::var("FLATPAK_ID").is_ok() ||
|
|
||||||
std::env::var("FLATPAK_SESSION_BUS_ADDRESS").is_ok()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Headless is enabled, always return true.
|
// Headless is enabled, always return true.
|
||||||
|
Loading…
Reference in New Issue
Block a user