Random wallpapers on a timer in XFCE?
Hi,
On Debian Lenny and XFCE 4.4.1 I would like to change my wallpaper, say daily. I gave XFCE a list of wallpapers to use, and it gives me a random one every time I log in, or when I run xfdesktop --reload. But if I try to run that command in a cron job or on a tty (basically, on any command line that's not running in the X server), it says it cannot open the display. This is on my laptop, which I hibernate normally. So my question is how can I get a random desktop daily? |
you have to specify the display device, try
Code:
export DISPLAY=:0 && xfdesktop --reload |
thank you!
|
Code:
From: Anacron <root@thrawn> If I just run /etc/cron.daily/wallpaper from a TTY, as my normal user, it works.. Edit: So I guess root can't change alucard's wallpaper? I tried the command "# sudo -u alucard blah blah" but got the same "cannot open display." |
This looks promising:
Code:
/etc/cron.daily/wallpaper: I'll tell you tomorrow or the next day if it works. |
All times are GMT -5. The time now is 07:39 AM. |