#!/bin/bash
D="$(cd "$(dirname "$0")/../Resources" && pwd)"
U="file://$D/index.html"
for B in "Google Chrome" "Brave Browser" "Microsoft Edge" "Chromium"; do
  if [ -d "/Applications/$B.app" ]; then
    open -na "$B" --args --app="$U" --user-data-dir="$HOME/.nexuscc-profile" --window-size=1440,880
    exit 0
  fi
done
open "$U"
