remove unused import and launch service when install

This commit is contained in:
chenbaiyu
2022-01-13 19:42:25 +08:00
parent 9be6b17a8b
commit 8e6dd76c5b
4 changed files with 11 additions and 12 deletions

View File

@@ -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;
}