2023-12-19 09:13:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# List of Chromium Command Line Switches
|
|
|
|
|
# https://peter.sh/experiments/chromium-command-line-switches/
|
|
|
|
|
|
|
|
|
|
COMMAND="chromium-browser \
|
|
|
|
|
--disable-features=Translate,Infobars \
|
|
|
|
|
--no-default-browser-check \
|
|
|
|
|
--no-first-run \
|
|
|
|
|
--noerrdialogs \
|
|
|
|
|
--class=TooloopOnboarding \
|
|
|
|
|
--app=file:///media/assets/data/index.html"
|
|
|
|
|
|
|
|
|
|
if [ $EUID == 0 ]; then
|
2024-02-19 16:34:03 +01:00
|
|
|
/bin/bash /assets/presentation/stop-presentation.sh
|
2023-12-19 09:13:33 +01:00
|
|
|
sleep 0.1
|
|
|
|
|
su tooloop -c "$COMMAND" &
|
|
|
|
|
else
|
2024-02-19 16:34:03 +01:00
|
|
|
/bin/bash /assets/presentation/stop-presentation.sh
|
2023-12-19 09:13:33 +01:00
|
|
|
sleep 0.1
|
|
|
|
|
$COMMAND &
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exit 0
|