On Mon, Jul 14, 2008 at 08:50:57 -0700, Russ Allbery wrote: > Julien Cristau <[EMAIL PROTECTED]> writes: > > It will always fail, because the user running the script (root) won't > > normally have access to the X server. > > See, I thought that too, and then I tried it and it seemed to work fine. > Maybe my test was wrong? > Maybe HOME was still set to the user's home dir? If XAUTHORITY isn't set Xlib looks in $HOME/.Xauthority, so that may work depending how you get root.
Cheers, Julien -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]