From dfa586d951e31d6f13afcafff9aad1a018db3232 Mon Sep 17 00:00:00 2001 From: tw93 Date: Thu, 5 Feb 2026 11:33:19 +0800 Subject: [PATCH] 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. --- scripts/setup-quick-launchers.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/setup-quick-launchers.sh b/scripts/setup-quick-launchers.sh index 889a02f..af0984e 100755 --- a/scripts/setup-quick-launchers.sh +++ b/scripts/setup-quick-launchers.sh @@ -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 ;;