fix: nightly ci

This commit is contained in:
Kingtous
2022-11-08 16:52:45 +08:00
parent d0aedaedce
commit 1109598131
5 changed files with 58 additions and 11 deletions

View File

@@ -807,6 +807,8 @@ pub fn is_root() -> bool {
#[inline]
pub fn check_super_user_permission() -> bool {
#[cfg(feature = "flatpak")]
return true;
#[cfg(any(windows, target_os = "linux"))]
return crate::platform::check_super_user_permission().unwrap_or(false);
#[cfg(not(any(windows, target_os = "linux")))]