Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I tried simply editing the autostart file to run a Python script on boot, but it runs with errors, I assume becasue the desktop hasn't completed. Can someone tell me how I would launch a script with a delay?
you should do approximately this:
crontab -e, add a line
inside the bash script write the following
/bin/sleep 100 && /usr/bin/python /home/pi/blah.py
where blah.py is your script you want to run with a delay.
Required, but never shown