Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Pi 4 B Autostart location?

Started by sparkypuzzler, March 20, 2021, 03:18:10 AM

Previous topic - Next topic

sparkypuzzler

Hi all, I have minimal knowledge of Linux, only worked with it occasionally, but am not dumb!

I have previously successfully done some sparkylinux minimal builds onto old laptops (fitted with IDE to card adapters) that then run display screens for a volunteer organisation. They run and then open a particular website, on demands run by a master control system of my own design. I am trialling moving the old laptops over to a Pi 4 B

I used to have the request to run chrome in

home\username\.config\lxsession\LXDE\autostart      and it was

@chromium --kiosk --kiosk-printing --app=https://thewebsiteinvolved

This doesn't now work as I expected.

I noticed a few autostarts in searching through the Pi build, so I'd really appreciate someone letting me know the correct way to achieve what I want to do.

As well, being a linux ignoramus, I may perhaps have not created a folder/file correctly, as the autostart file did not exist on first opening.  So I would really appreciate all the steps involved to be shown.

Thanks for your time if you can help.  I can't stay on the forum, but WILL check back periodically.  Please don't think I'm rude if I don't respond immediately.

cheers for now.

sparkypuzzler

In doing another post on the forum I realised I hadn't put up the solution to this question, sorry...., so here it is:

In my case to run Chrome as autostart it has to be in /home/pi/.config/openbox/autostart.sh

The actual directions were just put at the bottom of everything else in that autostart file. It is also worth noting for newbies that chrome is actually "chromium-browser". In my case I am running kiosk mode so it ended up as this to start into a particular site:

/usr/lib/chromium-browser/chromium-browser --kiosk --app=https://blah blah

cheers

View the most recent posts on the forum