1

I'm trying to open chromium when the Raspberry Pi 3B+ boots. I've found this post, but my raspberry doesn't seem to have the /home/pi/.config/lxsession folder. enter image description here

I tried creating the autostart file but It it won't work:

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart

Any clues?

1 Answers1

1

With System Unit file:

[Unit]
Description=Start Chromium
After=graphical.target
Wants=graphical.target

[Service]
User=pi
Group=pi
ExecStart=/bin/bash -c "export DISPLAY=:0; /usr/bin/chromium-browser https://raspberrypi.stackexchange.com 2>/tmp/startup-error-chromium;"

[Install]
WantedBy=graphical.target
Ephemeral
  • 2,157
  • 1
  • 6
  • 19