From 41762be3a522b10a8004547b54b3fec3b860d5a3 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Tue, 30 Apr 2024 20:20:39 +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 226b751a..2257b69a 100644 --- a/src-tauri/src/core/service.rs +++ b/src-tauri/src/core/service.rs @@ -102,7 +102,7 @@ pub async fn install_service() -> Result<()> { if !installer_path.exists() { bail!("installer not found"); } - let shell = installer_path.to_string_lossy(); + let shell = installer_path.to_string_lossy().replace(" ", "\\\\ "); let command = format!(r#"do shell script "{shell}" with administrator privileges"#); let status = StdCommand::new("osascript")