Skip to content

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

fix: nixos's headless mode. (#8774)

Bot_wxt1221de375c91bbaa
diff --git a/src/platform/linux.rs b/src/platform/linux.rs
index 0810bb246..f936bfb8c 100644
--- a/src/platform/linux.rs
+++ b/src/platform/linux.rs
@@ -730,7 +730,7 @@ pub fn block_input(_v: bool) -> (bool, String) {
pub fn is_installed() -> bool {
if let Ok(p) = std::env::current_exe() {
- p.to_str().unwrap_or_default().starts_with("/usr")
+ p.to_str().unwrap_or_default().starts_with("/usr") || p.to_str().unwrap_or_default().starts_with("/nix/store")
} else {
false
}