From 5155cf62432c04bda9dffefa97b0a62019212b74 Mon Sep 17 00:00:00 2001 From: Domantas Date: Thu, 25 Jun 2026 20:30:12 +0300 Subject: [PATCH] Add Ghostty terminal support for macOS launcher --- src/SMAPI.Installer/assets/unix-launcher.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SMAPI.Installer/assets/unix-launcher.sh b/src/SMAPI.Installer/assets/unix-launcher.sh index 6984d7bad..f860e4205 100644 --- a/src/SMAPI.Installer/assets/unix-launcher.sh +++ b/src/SMAPI.Installer/assets/unix-launcher.sh @@ -64,8 +64,11 @@ if [ "$(uname)" == "Darwin" ]; then chmod +x /tmp/open-smapi-terminal.command cat /tmp/open-smapi-terminal.command - # open in ITerm2 if installed, else the default Terminal - if [ -d "/Applications/iTerm.app" ]; then + # open in Ghostty or iTerm2 if installed, else the default Terminal + if [ -d "/Applications/Ghostty.app" ]; then + echo "Reopening in Ghostty..." + open -a "/Applications/Ghostty.app" /tmp/open-smapi-terminal.command + elif [ -d "/Applications/iTerm.app" ]; then echo "Reopening in iTerm2..." open -a "/Applications/iTerm.app" /tmp/open-smapi-terminal.command else