#!/bin/bash

set -o errexit
set -o pipefail
set -o nounset

/usr/bin/Xvfb $DISPLAY -nocursor -ac -screen 0 $XVFB_SCREENSIZE -nolisten tcp &
bash -c "sleep 5 && unclutter" & # hides mouse cursor
node_modules/.bin/electron --enable-logging node_modules/sp-compositor/dist/sp-compositor.js $*
exit 1
