mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
remove unused import and launch service when install
This commit is contained in:
@@ -19,7 +19,6 @@ use core_graphics::{
|
||||
use hbb_common::{allow_err, bail, log};
|
||||
use objc::{class, msg_send, sel, sel_impl};
|
||||
use scrap::{libc::c_void, quartz::ffi::*};
|
||||
use std::io::Read;
|
||||
|
||||
static mut LATEST_SEED: i32 = 0;
|
||||
|
||||
@@ -139,14 +138,6 @@ pub fn is_installed_daemon(prompt: bool) -> bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
if !std::process::Command::new("osascript")
|
||||
.arg("./privileges_scripts/launch_service.scpt")
|
||||
.status()
|
||||
.unwrap()
|
||||
.success() {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user