I'm trying to get following to work. Unfortunately, everything I tried so far did not.
- I have a Raspberry Pi 4 with Raspbian (Buster) installed.
- I have 3 users (root, pi and "kiosk"). The user "kiosk" is no sudoer (and should never be).
- auto-login to GUI for user "kiosk" is in effect
Now I want for the user "kiosk" (and only for this user) to auto-start chromium.
So far I tried the following
- Added "LXDE-kiosk" folder in
/etc/xdg/lxsession/, copied contents of
/etc/xdg/lxsession/LXDEand adjusted autostart file. However chromium was not started on reboot..
- I added a script to
home/kioskwhich should start a chromium browser and called it in crontab with a
@rebootentry. This did not work either. Later I found out that no GUI app should be startet via cron.
To be honest, I don't understand why the first option did not work. Is it even possible to have different autostart options for different users? When adjusting the "LXDE-pi autostart" file, everything works as expected.
(Edit: I also tried it with the old location
/home/kiosk/.config/lxsession/LXDE/autostart with no luck).