Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

https://github.com/flathub/flathub/pull/5670#issuecomment-2395337173

rustdeskcc860b290603
diff --git a/src/platform/linux.rs b/src/platform/linux.rs
index 3f0860f86..08cf0fb9a 100644
--- a/src/platform/linux.rs
+++ b/src/platform/linux.rs
@@ -611,9 +611,7 @@ pub fn get_env_var(k: &str) -> String {
}
fn is_flatpak() -> bool {
- std::env::var("FLATPAK_SANDBOX_DIR").is_ok() ||
- std::env::var("FLATPAK_ID").is_ok() ||
- std::env::var("FLATPAK_SESSION_BUS_ADDRESS").is_ok()
+ std::path::PathBuf::from("/.flatpak-info").exists()
}
// Headless is enabled, always return true.