Caleb9 / syno-photo-frame

Build a digital photo frame for Synology Photos with Raspberry Pi
GNU General Public License v3.0
43 stars 3 forks source link

Autostart not working #19

Open DaveRicks54 opened 2 days ago

DaveRicks54 commented 2 days ago

Hi, first of all this a great project and is great. I am however struggling to get it to work in a crontab on start up and get an error message in the log file. "Error: XDG_RUNTIME_DIR is invalid or not set in the environment."

When running the line in terminal is works fine but when I load it to the crontab file it doesn't work on reboot and doesn't work once I try it manually almost like it already trying to run in the background.

FYI I am running it on raspberry PI desktop edition so if I need to run this on raspberry PI lite as there's a conflict with the desktop then I'll be happy to try it.

Thank you

Caleb9 commented 2 days ago

Hi, thanks :). I think the fact that it's desktop may have something to do with it. I don't have one set up right now so I can't try it out, but maybe there's some way other than crontab to set startup apps in desktop context? If you can't find one, then give Lite edition a try, and let me know if that worked, thanks.