2009/2/21 Andre Truter <andre.truter@gmail.com>:
I have just upgraded from openSUSE 11.0 to 11.1. I use XFCE as desktop and I have a cron job that change my background every hour by executing xfdesktop -reload. This worked fine until now. On openSUSE 11.1, the script cannot access the display. I get the error:
(xfdesktop:14628): Gtk-WARNING **: cannot open display: :0
It works fine if I run it from an x terminal.
Any idea hos I can give the cron job access to the display, or any other ideas on how to run a script every hour inside the X session?
Thanks
-- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za
~ A dinosaur is a salamander designed to Mil Spec ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
What about defining DISPLAY before running the command? Something like: ------ 0 * * * * export DISPLAY=localhost:0.0; /usr/bin/xfdesktop -reload ------ Regards, -- Ciro Iriarte http://cyruspy.wordpress.com -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org