From 2144a42a221394289fb14538a8dd48da2369ca02 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Sat, 13 Apr 2024 15:12:41 +0800 Subject: [PATCH] fix: service install path --- src-tauri/src/core/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/service.rs b/src-tauri/src/core/service.rs index af529ea1..226b751a 100644 --- a/src-tauri/src/core/service.rs +++ b/src-tauri/src/core/service.rs @@ -193,7 +193,7 @@ pub async fn uninstall_service() -> Result<()> { bail!("uninstaller not found"); } - let shell = uninstaller_path.to_string_lossy(); + let shell = uninstaller_path.to_string_lossy().replace(" ", "\\\\ "); let command = format!(r#"do shell script "{shell}" with administrator privileges"#); let status = StdCommand::new("osascript")