fix: service install path

This commit is contained in:
MystiPanda 2024-04-13 15:12:41 +08:00
parent 68691b91ef
commit e97b1ccd7a

View File

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