From 877b3e2ce58d25f1f02821d45e86bbf5ec431e0e Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 6 Aug 2024 12:19:06 +0800 Subject: [PATCH] fix ci --- src/core_main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core_main.rs b/src/core_main.rs index 902c816e5..2c4b22466 100644 --- a/src/core_main.rs +++ b/src/core_main.rs @@ -266,10 +266,10 @@ pub fn core_main() -> Option> { hbb_common::allow_err!(crate::platform::check_autostart_config()); std::process::Command::new("pkill") .arg("-f") - .arg(&format!("%s --tray", crate::get_app_name().to_lowercase())) + .arg(&format!("{} --tray", crate::get_app_name().to_lowercase())) .status() .ok(); - allow_err!(crate::crate::platform::run_as_user(vec!["--tray"])); + hbb_common::allow_err!(crate::crate::platform::run_as_user(vec!["--tray"])); } #[cfg(windows)] crate::privacy_mode::restore_reg_connectivity(true);