fix #5205
This commit is contained in:
parent
97f14d21e8
commit
ac60ba40a2
@ -693,7 +693,8 @@ pub fn check_super_user_permission() -> ResultType<bool> {
|
||||
}
|
||||
// https://github.com/rustdesk/rustdesk/issues/2756
|
||||
if let Ok(status) = Command::new("pkexec").arg(arg).status() {
|
||||
Ok(status.code() != Some(126))
|
||||
// https://github.com/rustdesk/rustdesk/issues/5205#issuecomment-1658059657s
|
||||
Ok(status.code() != Some(126) && status.code() != Some(127))
|
||||
} else {
|
||||
Ok(true)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user