2009/2/22 Pit Suetterlin <P.Suetterlin@royac.iac.es>:
Ciro Iriarte wrote: [ ... ]
(xfdesktop:14628): Gtk-WARNING **: cannot open display: :0
It works fine if I run it from an x terminal.
What about defining DISPLAY before running the command?
Well, the error message suggests DISPLAY is set.
Yes, I am already setting the DISPLAY variable in my script
I'd suspect XAUTHORITY as the culprit, try defining that before running the script...
Yes, it seems to be the XAUTHORITY variable that is the problem. Up to openSUSE 11.0 it was set at the default $HOME/.Xauthority, but now it seems to be random for each XServer start. At the moment it is /var/run/gdm/auth-for-andre-6BxCA5/database But even if I set XAUTHORITY and export it in the script, it does not work. But Ciro's suggestion works: killall -USR1 xfdesktop 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