mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 22:11:30 +08:00
fix: nixos's headless mode. (#8774)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user