mirror of
https://github.com/tw93/Mole.git
synced 2026-02-05 19:02:57 +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
|
||||
;;
|
||||
Ghostty)
|
||||
if has_bin "ghostty"; then
|
||||
ghostty --command "/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}"
|
||||
if launcher_available "Ghostty" && command -v open >/dev/null 2>&1; then
|
||||
open -na "Ghostty" --args -e /bin/zsh -lc "\${MO_BIN} \${MO_SUBCOMMAND}"
|
||||
return \$?
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user