Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sgnconnects/cb19c18c32ce2be32d873dd4b832749e to your computer and use it in GitHub Desktop.
Save sgnconnects/cb19c18c32ce2be32d873dd4b832749e to your computer and use it in GitHub Desktop.
All you need if you wanna use a Chrome Extension as your main app on Raspberry Pi. With these settings, RPI will start clean with a Chrome app in fullscreen

Autostart Apps in Chrome

  • sudo apt-get update
  • Open the local copy in /usr/share/applications (drag it over an open nano sudo nano ~/.local/share/applications/chromium-browser.desktop)
  • look for the first line, starting with Exec=. Replace the line by (in the case of "YOURNAME"):

Exec=chromium-browser --profile-directory="Default" %u

  • add mouse hide software sudo apt-get install unclutter
  • edit autostart file sudo nano /etc/xdg/lxsession/LXDE-pi/autostart:
#!/bin/bash

### Chromium Startverzoegerung
sleep 15

### Bildschirmschoner deaktivieren
#@xscreensaver -no-splash  
@xset s 0 0
@xset s off         # don't activate screensaver
@xset -dpms         # disable DPMS (Energy Star) features.
@xset s noblank     # don't blank the video device

Mauszeiger ausblenden

@unclutter

lädt Chromium im Vollbild bei einem Neustart

for a specific webpage

@/usr/bin/chromium-browser --incognito --kiosk --ignore-certificate-errors --disable-restore-session-state --ignore-certificate-errors https://www.google.com 

# for a specific App (example for AppSpace / Signage)
# found your app id in /~/.config/chromium/Default/Extensions

@/usr/bin/chromium-browser --enable-extension-apps --enable-extensions --enable-apps --app-id=gmdgbdlpbnhiogedlhmdiceocbgcbpgi `

to make everything blank on startup

  • sudo nano /boot/cmdline.txt

  • Replace console=tty1 with console=tty3 to redirect boot messages to the third console?

  • Add logo.nologo to hide Raspberry logo

  • Add quiet splash for a non-text load screen.

  • If you wanna start via terminal: /usr/bin/chromium-browser --profile-directory=Default --app-id=gmdgbdlpbnhiogedlhmdiceocbgcbpgi (example for AppSpace)

Exit Kiosk mode

alt+f4 ctrl+w F11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment