- copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
- open the autostart with nano
nano ~/.config/lxsession/LXDE-pi/autostart
- Then edit the autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash
point-rpi
chromium --start https://google.com/
if you want to autostart incongnito mode
@chromium-browser --incognito --start https://google.com/
chromium --incognito https://google.com/
^ + x
exit and save
then sudo reboot
to try on
the various other browser modes:
-
Application Mode:
@chromium-browser --app
. The browser starts up without displaying any toolbars. -
Full-screen mode:
@chromium-browser --start-fullscreen
. The browser starts in app. mode but expanded to full-screen. You can press the F11 key to break out of full-screen mode. -
Kiosk mode:
@chromium-browser --kiosk
. The browser starts in full-screen mode but does not respond to the F11 key, nor to any command to get it to switch tasks.
--noerrdialogs: suppresses any error messages or prompts that would normally be displayed as dialogue boxes
--disable-infobars: disables the infobars that provide information or notifications within the user interface
--no-first-run: prevents the application from displaying a first-run setup experience or any introductory prompts that would typically appear when launching the application for the first time
--ozone-platform=wayland: specifies the Ozone platform to use, specifically Wayland (Ozone is a platform abstraction layer used for creating user interfaces in certain applications)
--enable-features=OverlayScrollbar: enables scrollbars that appear only when necessary and overlay the content, rather than being constantly visible
from : https://www.raspberrypi.com/tutorials/how-to-use-a-raspberry-pi-in-kiosk-mode/