Skip to content

Instantly share code, notes, and snippets.

@aofserver
Forked from rampfox/Chromium-at-startup.md
Last active December 17, 2021 06:40
Show Gist options
  • Select an option

  • Save aofserver/4a1bc7a2be63f85a803ec70438906ab5 to your computer and use it in GitHub Desktop.

Select an option

Save aofserver/4a1bc7a2be63f85a803ec70438906ab5 to your computer and use it in GitHub Desktop.
How to open Chromium in full screen at startup on the Raspberry Pi

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
  1. open the autostart with nano
nano ~/.config/lxsession/LXDE-pi/autostart
  1. Then edit the autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash
point-rpi
@chromium-browser --start https://google.com/

if you want to autostart incongnito mode

@chromium-browser --incognito --start https://google.com/

^ + x exit and save

then sudo reboot to try on


the various other browser modes:

https://www.danpurdy.co.uk/web-development/raspberry-pi-kiosk-screen-tutorial/

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