mirror of
https://github.com/Tooloop/Tooloop-Packages.git
synced 2026-04-27 20:41:37 +02:00
34 lines
597 B
Bash
34 lines
597 B
Bash
#!/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-features=Translate,Infobars \
|
|
--disable-pinch \
|
|
--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
|