linux is_installed

This commit is contained in:
rustdesk
2023-05-09 17:09:51 +08:00
parent f96c010424
commit 084ca8e59d
2 changed files with 6 additions and 2 deletions

View File

@@ -603,7 +603,11 @@ pub fn block_input(_v: bool) -> bool {
}
pub fn is_installed() -> bool {
true
if let Ok(p) = std::env::current_exe() {
p.to_str().unwrap_or_default().starts_with("/usr")
} else {
false
}
}
pub(super) fn get_env_tries(name: &str, uid: &str, process: &str, n: usize) -> String {