I am running raspbian and my pi boots straight to desktop. I am wondering how I could schedule a script to run at boot to desktop and not at power-on.
You use two ways here :
- using rc.local to shell-scripted desktop detection and running your script at the right time
- using your desktop environment's autorun capabilities.
startxscript can utilize
.xinitrcscripts by auto-including and executing them. In case that you need to exec your script after/inside not just a GUI, but a display manager - read its man page. The default
LXDMis well-documented here. Basically you'll just use a
I had the same requirement. I found the best way was using cron. Best thing about cron is you do not need to login and you can fully control the process, how many time to run, when to run etc..