#!/usr/bin/env bash
# Start the TigerVNC X server on display :1.
# NOTE: do NOT pass `-extension RENDER` — it blanks XFCE menus/panels
# (see docs/vnc-xfce-setup.md §3-4).
set -e
: "${VNC_RESOLUTION:=1920x1080}"
exec /usr/bin/Xvnc :1 \
  -geometry "$VNC_RESOLUTION" -depth 24 \
  -rfbport 5901 -rfbauth /root/.vnc/passwd \
  -SecurityTypes VncAuth -localhost no -AlwaysShared
