mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
kill check-hwcodec-config process
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -549,7 +549,7 @@ async fn check_pid(postfix: &str) {
|
||||
file.read_to_string(&mut content).ok();
|
||||
let pid = content.parse::<i32>().unwrap_or(0);
|
||||
if pid > 0 {
|
||||
use sysinfo::{ProcessExt, System, SystemExt};
|
||||
use hbb_common::sysinfo::{ProcessExt, System, SystemExt};
|
||||
let mut sys = System::new();
|
||||
sys.refresh_processes();
|
||||
if let Some(p) = sys.process(pid.into()) {
|
||||
|
||||
@@ -558,7 +558,7 @@ pub fn hide_dock() {
|
||||
}
|
||||
|
||||
fn check_main_window() -> bool {
|
||||
use sysinfo::{ProcessExt, System, SystemExt};
|
||||
use hbb_common::sysinfo::{ProcessExt, System, SystemExt};
|
||||
let mut sys = System::new();
|
||||
sys.refresh_processes();
|
||||
let app = format!("/Applications/{}.app", crate::get_app_name());
|
||||
|
||||
Reference in New Issue
Block a user