startup_message off

exec nitrogen --set-zoom-fill /home/pi/PiratenBox/assets/splash/splash.png

exec xset s noblank
exec xset s off
exec xset -dpms

#exec xsetroot -solid "#FF80800"

# Hide the mouse from the display
exec unclutter -idle 2 -root &

# If hostname changed wont start without removing lock
rm -rf ~/.config/chromium/Singleton*

# If Chromium crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar
exec sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
exec sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences

exec /usr/bin/chromium-browser --noerrdialogs --disable-infobars --disable-pinch --overscroll-history-navigation=0 --remote-debugging-port=9222 --incognito --kiosk http://localhost:4242/kiosk
