Closed okon3 closed 8 years ago
You can do this via cron if you are in Linux
Exactly as @wynro said, this can be done using cronjobs.
Note that you can also use --time hour
for top hourly images. I think that changing it every minute to newest submission wouldn't be safe, but I'll see which features I can add related to this.
I've added --time new
for newest subreddit post.
I can add a PR to keep the script running and make the change every x mins/hours/etc if you wish to re-open this.
Sure @joesanford you can add it!
Closing this, as its better solution to do this via cron or task scheduler than have the script running whole time.
do you have an example crontab? keep getting the "Unsupported desktop environment" error when I run on my Ubuntu machine
@asgoel does the script work if you just run it instead of as a cron job, or does it get the same error?
Works fine if I run it normally. Think it has to do with the environment that the cron job runs in
On Friday, July 29, 2016, Joe Sanford notifications@github.com wrote:
@asgoel https://github.com/asgoel does the script work if you just run it instead of as a cron job, or does it get the same error?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ssimunic/Daily-Reddit-Wallpaper/issues/3#issuecomment-236156814, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQwFgNOtQLZMqj2cnjTfCqRlfUSZ-Fdks5qaeK_gaJpZM4I-Tol .
That was my thought exactly.
Instead of having the script detect the environment when running as a cron job, I'd instead explicitly set the environment.
I really like my wallpaper to change while I work. I think this one would be a nice addiction without much effort.