#!/bin/bash
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"

# Try system Python 3 paths
if [ -f "/usr/bin/python3" ]; then
    PY="/usr/bin/python3"
elif command -v python3 &> /dev/null; then
    PY="$(command -v python3)"
else
    osascript -e 'display dialog "Python 3 is required to run Suraxon iOS Sync. Please install Python 3 from python.org." buttons {"OK"} default button "OK" with icon stop'
    exit 1
fi

"$PY" "$DIR/suraxon_desktop_gui.py"
