#!/bin/bash

# Kanal einlesen 
CHANNEL="$(</home/snowtv/bin/channel.txt)"

# Chromium Browser starten

rm -rf /home/snowtv/.config/chromium/Singleton*

DISPLAY=:0.0 chromium --profile-directory="Default" \
	--use-gl=egl \
	--no-sandbox \
	--disable-gpu-sandbox \
	--disable-translate \
	--disable-infobars \
	--no-first-run \
	--disable-suggestions-service \
	--disable-save-password-bubble \
	--autoplay-policy=no-user-gesture-required \
	--start-maximized \
	--noerrdialogs \
	--enable-auto-reload \
	--enable-logging --v=1 \
	--kiosk "$CHANNEL" &
	#--remote-debugging-port=9222 \
	#--kiosk "$CHANNEL" &

echo "$CHANNEL" > /tmp/channel.txt
sleep 1

exit 0
