#!/usr/bin/env sh
set -eu

URL="https://prestiz.xyz"

if command -v xdg-open >/dev/null 2>&1; then
	exec xdg-open "$URL" >/dev/null 2>&1
fi

if command -v gio >/dev/null 2>&1; then
	exec gio open "$URL" >/dev/null 2>&1
fi

if command -v sensible-browser >/dev/null 2>&1; then
	exec sensible-browser "$URL" >/dev/null 2>&1
fi

echo "Cannot open browser automatically. Open manually: $URL" >&2
exit 1
