updated kiosk browser to chromium changes

This commit is contained in:
2022-12-19 10:57:52 +01:00
parent 9d8c37cc33
commit e886a63627
3 changed files with 27 additions and 37 deletions
@@ -1,32 +0,0 @@
#!/bin/bash
URL="/media/assets/data/index.html"
# List of Chromium Command Line Switches
# https://peter.sh/experiments/chromium-command-line-switches/
COMMAND="chromium-browser \
--kiosk \
--bwsi \
--overscroll-history-navigation=1 \
--incognito \
--disable-infobars \
--disable-translate \
--no-default-browser-check \
--no-first-run \
--disable-translate-new-ux \
--num-raster-threads=4 \
--enable-zero-copy \
--noerrdialogs \
--class=TooloopKiosk \
$URL"
killall chrome
sleep 0.1
if [ $EUID == 0 ]; then
su tooloop -c "$COMMAND" &
else
$COMMAND &
fi
exit 0
@@ -1,9 +1,32 @@
#!/bin/bash
IDLETIME=60
RESET_COMMAND="/bin/bash /assets/presentation/reset-kiosk.sh"
URL="/media/assets/data/index.html"
$RESET_COMMAND
xidlerun -t $IDLETIME -c "$RESET_COMMAND" &
# List of Chromium Command Line Switches
# https://peter.sh/experiments/chromium-command-line-switches/
COMMAND="chromium-browser \
--kiosk \
--bwsi \
--overscroll-history-navigation=1 \
--incognito \
--disable-features=Translate,Infobars \
--no-default-browser-check \
--no-first-run \
--noerrdialogs \
--num-raster-threads=8 \
--enable-zero-copy \
--class=TooloopKiosk \
$URL"
if [ $EUID == 0 ]; then
pkill chrome
sleep 0.1
su tooloop -c "$COMMAND" &
else
pkill chrome
sleep 0.1
$COMMAND &
fi
exit 0
@@ -1,6 +1,5 @@
#!/bin/bash
pkill xidlerun &
pkill chrome &
exit 0