#!/usr/bin/env bash # Wait for the desktop, then launch Chrome on :1 so the VNC screen shows a # controllable browser (jarvis can also drive it). Runs as root -> --no-sandbox. set -e for i in $(seq 1 40); do xdpyinfo -display :1 >/dev/null 2>&1 && break sleep 1 done sleep 3 export DISPLAY=:1 exec google-chrome \ --no-sandbox --no-first-run --disable-dev-shm-usage \ --password-store=basic --start-maximized \ "${CHROME_START_URL:-about:blank}"