feat: Nyanpasu Misc

This commit is contained in:
keiko233
2023-11-12 00:09:32 +08:00
parent 3459a16b48
commit 91074bebd6
19 changed files with 41 additions and 40 deletions

View File

@@ -13,7 +13,7 @@ pub fn grant_permission(core: String) -> anyhow::Result<()> {
#[cfg(target_os = "macos")]
let output = {
// the path of clash /Applications/Clash Verge.app/Contents/MacOS/clash
// the path of clash /Applications/Clash Nyanpasu.app/Contents/MacOS/clash
// https://apple.stackexchange.com/questions/82967/problem-with-empty-spaces-when-executing-shell-commands-in-applescript
// let path = escape(&path);
let path = path.replace(' ', "\\\\ ");