Created
November 20, 2018 18:50
-
-
Save dropmeaword/0e13fc2bb59056d91c38279ff76a6d95 to your computer and use it in GitHub Desktop.
start browser in kiosk mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
STARTUP_URL="file:///home/pi/workspace/www/start.html" | |
CHROMIUM_TEMP=~/tmp/chromium | |
rm -Rf ~/.config/chromium/ | |
rm -Rf $CHROMIUM_TEMP | |
mkdir -p $CHROMIUM_TEMP | |
chromium-browser \ | |
--disable \ | |
--disable-translate \ | |
--disable-infobars \ | |
--disable-suggestions-service \ | |
--disable-save-password-bubble \ | |
--start-maximized \ | |
$STARTUP_URL & | |
# --kiosk $STARTUP_URL & | |
# --disk-cache-dir=$CHROMIUM_TEMP/cache/ \ | |
# --user-data-dir=$CHROMIUM_TEMP/user_data/ \ | |
sleep 5 | |
florence | |
#xdotool search --sync --onlyvisible --class "chromium" key F11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment