#!/bin/sh
# ------------------------------------------------------------------
# [Author] Nafeu Nasir
#          Run chrome kiosk for rpi
# ------------------------------------------------------------------

activate_kiosk(){
  sleep 5
  export DISPLAY=:0.0
  chromium-browser --kiosk http://localhost:8000?remote=true
}

BASEDIR=$(dirname "$0")

activate_kiosk &
node $BASEDIR/server.js

#!/bin/sh
# ------------------------------------------------------------------
# [Author] Nafeu Nasir
#          Run chrome kiosk for rpi
# ------------------------------------------------------------------

BASEDIR=$(dirname "$0")

activate_kiosk(){
  sleep 5
  export DISPLAY=:0.0
  chromium-browser --kiosk http://localhost:8000?remote=true
}

if [ -z "$SSH_CLIENT" ] && [ -z "$SSH_TTY" ]; then
  activate_kiosk &
  node "$BASEDIR/server.js"
fi
Update kiosk script to prevent new app instance on every login
Update kiosk script to prevent new app instance on every login
