Skip to content

Commit

Permalink
Merge pull request #482 from ocitrev/readable-flags
Browse files Browse the repository at this point in the history
Make flags easier to maintain
  • Loading branch information
guysoft authored Oct 22, 2023
2 parents 8ca0b43 + ef66c14 commit 1d136a1
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
#!/bin/bash

flags=(
--kiosk
--touch-events=enabled
--disable-pinch
--noerrdialogs
--disable-session-crashed-bubble
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'
--disable-component-update
--overscroll-history-navigation=0
--disable-features=Translate
--autoplay-policy=no-user-gesture-required
)

# Standard behavior - runs chrome
chromium-browser --kiosk --touch-events=enabled --disable-pinch --noerrdialogs --disable-session-crashed-bubble --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' --disable-component-update --overscroll-history-navigation=0 --disable-features=Translate --autoplay-policy=no-user-gesture-required --app=$(/home/pi/scripts/get_url)
chromium-browser "${flags[@]}" --app=$(/home/pi/scripts/get_url)
exit;

# Remove the two lines above to enable signage mode - refresh the browser whenever errors are seen in log

chromium-browser --enable-logging --log-level=2 --v=0 --kiosk --touch-events=enabled --disable-pinch --noerrdialogs --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' --disable-session-crashed-bubble --disable-component-update --overscroll-history-navigation=0 --disable-features=Translate --autoplay-policy=no-user-gesture-required --app=$(head -n 1 /boot/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g") &
chromium-browser --enable-logging --log-level=2 --v=0 "${flags[@]}" --app=$(head -n 1 /boot/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g") &

export logfile="/home/pi/.config/chromium/chrome_debug.log"

Expand Down

0 comments on commit 1d136a1

Please sign in to comment.