mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 19:50:15 +00:00
fix(raycast): use correct macOS launch method for Ghostty (#415)
Ghostty CLI on macOS cannot launch terminal windows, causing cli:N field parse errors. Use `open -na Ghostty --args -e` instead.
This commit is contained in:
@@ -180,11 +180,8 @@ APPLESCRIPT
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
Ghostty)
|
Ghostty)
|
||||||
if has_bin "ghostty"; then
|
if launcher_available "Ghostty" && command -v open >/dev/null 2>&1; then
|
||||||
ghostty --command "/bin/zsh" -- -lc "\"\${MO_BIN}\" \${MO_SUBCOMMAND}"
|
open -na "Ghostty" --args -e /bin/zsh -lc "\${MO_BIN} \${MO_SUBCOMMAND}"
|
||||||
return \$?
|
|
||||||
elif [[ -x "/Applications/Ghostty.app/Contents/MacOS/ghostty" ]]; then
|
|
||||||
"/Applications/Ghostty.app/Contents/MacOS/ghostty" --command "/bin/zsh" -- -lc "\"\${MO_BIN}\" \${MO_SUBCOMMAND}"
|
|
||||||
return \$?
|
return \$?
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user