Caleb9 / syno-photo-frame

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

Autostart not working #19

Closed DaveRicks54 closed 3 weeks ago

DaveRicks54 commented 1 month 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 1 month 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.

Caleb9 commented 1 month ago

@DaveRicks54 did you manage to solve your issue?

beattiebeatdown commented 4 weeks ago

Hey all, I had this exact issue while running rpi OS desktop. Switched to OS lite and it instantly worked. During my testing in rpi desktop os I couldn't get auto start to work at all. I tried crontab, systemd, rc.local etc but nothing worked.

Caleb9 commented 3 weeks ago

Thanks for confirming this @beattiebeatdown.

Caleb9 commented 3 weeks ago

Closing due to inactivity and proposed solution.