# Managed by ansible (pi_kiosk role). Auto-starts the kiosk browser on the console # this account autologs into - not meant for interactive use. if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then while true; do {% if pi_kiosk_mode == 'debug' %} # No -nocursor: debugging on the device's own screen needs a pointer. startx {% else %} startx -- -nocursor {% endif %} sleep 1 done fi