fix check_process on mac since normal user can not get system's
process's command line arguments
This commit is contained in:
parent
f34a8ef0e5
commit
ea1d4adfa6
2 changed files with 8 additions and 2 deletions
|
|
@ -958,7 +958,7 @@ impl Connection {
|
|||
}
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
if crate::is_server() && Config::get_option("allow-only-conn-window-open") == "Y" {
|
||||
if !crate::check_process("", false) {
|
||||
if !crate::check_process("", !crate::platform::is_root()) {
|
||||
self.send_login_error("The main window is not open").await;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue