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")