소스 검색

fix: service install path

MystiPanda 1 년 전
부모
커밋
e97b1ccd7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src-tauri/src/core/service.rs

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