#!/bin/sh
# Cogitator sticky note. A small always-there window for the current note.
URL="https://cogidemo.mullinsit.tech/mini"
SIZE="--window-size=340,430"
for b in "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge" \
         "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
         microsoft-edge microsoft-edge-stable google-chrome google-chrome-stable chromium chromium-browser; do
  if [ -x "$b" ]; then exec "$b" --app="$URL" $SIZE; fi
  if command -v "$b" >/dev/null 2>&1; then exec "$b" --app="$URL" $SIZE; fi
done
echo "No Chrome or Edge found. Open $URL in a browser."
