mirror of
https://github.com/rustdesk/rustdesk
synced 2026-04-21 13:27:19 +00:00
revert: flatpak command line is_root
This commit is contained in:
parent
eb0174ea53
commit
4f4da20fc0
2 changed files with 1 additions and 5 deletions
|
|
@ -803,10 +803,6 @@ fn is_root() -> bool {
|
|||
return crate::platform::is_elevated(None).unwrap_or_default()
|
||||
|| crate::platform::is_root();
|
||||
}
|
||||
#[cfg(linux)]
|
||||
{
|
||||
return crate::platform::is_flatpak() || crate::platform::is_root();
|
||||
}
|
||||
#[allow(unreachable_code)]
|
||||
crate::platform::is_root()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -701,7 +701,7 @@ pub fn get_env_var(k: &str) -> String {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_flatpak() -> bool {
|
||||
fn is_flatpak() -> bool {
|
||||
std::path::PathBuf::from("/.flatpak-info").exists()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue