raspberry pi program autostart

November 27, 2023, 23:09

melanie3046

I want to run two scripts in the autostart file for the raspberry pi. .config/lxsession/LXDE-pi/autostart. I want to run two scripts here such as shown below
bash
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@sh ~/etc/ .startupsh2.sh
@sh ~/etc/ .startupsh1.sh
The scripts themselves have been tested and run, but they don't run on autostart. Does anyone know where I could be going wrong, or another method of doing this?

null

@lxterminal -e /path/to/a-script.sh

miabl0

you could make a systemd service and use systemd to start it on startup https://askubuntu.com/questions/919054/how-do-i-run-a-single-command-at-startup-using-systemd