mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-05 05:31:28 +03:00
revert: flatpak command line is_root
This commit is contained in:
@@ -803,10 +803,6 @@ fn is_root() -> bool {
|
|||||||
return crate::platform::is_elevated(None).unwrap_or_default()
|
return crate::platform::is_elevated(None).unwrap_or_default()
|
||||||
|| crate::platform::is_root();
|
|| crate::platform::is_root();
|
||||||
}
|
}
|
||||||
#[cfg(linux)]
|
|
||||||
{
|
|
||||||
return crate::platform::is_flatpak() || crate::platform::is_root();
|
|
||||||
}
|
|
||||||
#[allow(unreachable_code)]
|
#[allow(unreachable_code)]
|
||||||
crate::platform::is_root()
|
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()
|
std::path::PathBuf::from("/.flatpak-info").exists()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user