mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fix: service install path
This commit is contained in:
@@ -193,7 +193,7 @@ pub async fn uninstall_service() -> Result<()> {
|
|||||||
bail!("uninstaller not found");
|
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 command = format!(r#"do shell script "{shell}" with administrator privileges"#);
|
||||||
|
|
||||||
let status = StdCommand::new("osascript")
|
let status = StdCommand::new("osascript")
|
||||||
|
|||||||
Reference in New Issue
Block a user