mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-07 08:31:28 +03: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 {
|
pub fn is_installed() -> bool {
|
||||||
if let Ok(p) = std::env::current_exe() {
|
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 {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user