command line to change wallpaper

Jasper Huijsmans jasper at moongroup.com
Fri Oct 24 13:05:41 CEST 2003


Op vr 24-10-2003, om 12:56 schreef Hayden Stefan:
> i have xplanet and i want to refresh the wallpaper
> every 30min.
> 
> running the xfdesktop command line fails to run by
> cron and give this error:
> 
> Gtk-WARNING **: cannot open display:
> 
> do you know a command line to refresh the wallpaper
> other than xfdesktop?
> 

Cron doesn't know your X environment, so that doesn't work.

You could make a script that you run when X is started. Something like
this:

===

#!/bin/sh

while true
do
  sleep 5
  xfdesktop || break
done

===

> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://moongroup.com/mailman/listinfo/xfce




More information about the Xfce mailing list