diff --git a/script/macos/run b/script/macos/run index a667e096f..42ee2c18b 100755 --- a/script/macos/run +++ b/script/macos/run @@ -134,7 +134,15 @@ if [ "$DONT_OPEN" = false ] ; then if [ "$OPEN_WITH_LAUNCHD" = true ]; then echo "Launching with MacOS application launcher" PATH="" /usr/bin/open "./$WARP_APP_PATH" - tail -f ~/Library/Logs/warp_local.log + if [ "$WARP_CHANNEL" = "local" ]; then + LOG_FILE=~/Library/Logs/warp_local.log + elif [ "$WARP_CHANNEL" = "oss" ]; then + LOG_FILE=~/Library/Logs/warp-oss.log + else + echo "Warning: unrecognized WARP_CHANNEL '$WARP_CHANNEL', defaulting to OSS log path" >&2 + LOG_FILE=~/Library/Logs/warp-oss.log + fi + tail -F "$LOG_FILE" else echo "Opening app at ./$WARP_APP_PATH/Contents/MacOS/$WARP_BIN_NAME" "./$WARP_APP_PATH/Contents/MacOS/$WARP_BIN_NAME" "${WARP_ARGS[@]}"