fix: nixos's headless mode. (#8774)
This commit is contained in:
parent
d3454f07d3
commit
de375c91bb
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user