Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Created November 20, 2018 18:50
Show Gist options
  • Save dropmeaword/0e13fc2bb59056d91c38279ff76a6d95 to your computer and use it in GitHub Desktop.
Save dropmeaword/0e13fc2bb59056d91c38279ff76a6d95 to your computer and use it in GitHub Desktop.
start browser in kiosk mode
#!/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