mirror of
https://github.com/Tooloop/Tooloop-Packages.git
synced 2026-04-27 20:41:37 +02:00
updated kiosk browser to chromium changes
This commit is contained in:
@@ -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
|
#!/bin/bash
|
||||||
|
|
||||||
IDLETIME=60
|
URL="/media/assets/data/index.html"
|
||||||
RESET_COMMAND="/bin/bash /assets/presentation/reset-kiosk.sh"
|
|
||||||
|
|
||||||
$RESET_COMMAND
|
# List of Chromium Command Line Switches
|
||||||
xidlerun -t $IDLETIME -c "$RESET_COMMAND" &
|
# 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
|
exit 0
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pkill xidlerun &
|
|
||||||
pkill chrome &
|
pkill chrome &
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user