Raspberry Pi Asked on December 12, 2021
I’m trying to get following to work. Unfortunately, everything I tried so far did not.
Now I want for the user "kiosk" (and only for this user) to auto-start chromium.
So far I tried the following
/etc/xdg/lxsession/
, copied contents of /etc/xdg/lxsession/LXDE
and adjusted autostart file. However chromium was not started on reboot..home/kiosk
which should start a chromium browser and called it in crontab with a @reboot
entry. 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).
Install gnome-tweeks. There is an option called Startup Applications there. Click on the + to add your startup apps. I'm using rpi4.
Answered by Dave Samol on December 12, 2021
The first option did not work because LXDE-pi
is not a folder belonging to the user pi
, despite the name. It's a folder with a global config for a desktop environment profile called LXDE-pi
.
I'd concentrate on getting /home/kiosk/.config/lxsession/LXDE/autostart
to work. Put a simple script there which creates a file in /tmp
or something similar, and see if that works. If not, find out why. Most likely, it's because you're still using the LXDE-pi
profile and the path should be /home/kiosk/.config/lxsession/LXDE-pi/autostart
.
AFAIK another option is to create a *.desktop file in /home/kiosk/.config/autostart
.
Once a simple script works, try out Chromium. My advice is to run it interactively with kiosk
user in the beginning, to make sure it can run at all.
Answered by Dmitry Grigoryev on December 12, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP