[QCLUG] Re: Kid timer

Leif Theden leif.theden@gmail.com
Tue, 25 Jul 2006 15:24:40 -0500


ok, ok, so i think i get it.

> >  DISPLAY=:0 XAUTHORITY=/var/lib/gdm/\:0.Xauth \
> >     zenity --info --text='computer will shutdown in 5 minutes'
> >

this is supposed to use the login manager's rights to the display.
but, i use kdm, and im assuming that jim does as well, since he is
using kde.  is there a standard place where a programs XAuthority is
kept?  or is that something that is diiferent for every program?

On 7/25/06, Steve Langasek <vorlon@dodds.net> wrote:
> On Tue, Jul 25, 2006 at 09:16:27AM -0500, Leif Theden wrote:
> > could you just copy the user's .Xauthority to root, then run zenity?
>
> You would have to know which user was currently logged in, which is trickier
> to determine at runtime than just grabbing the display manager's
> .Xauthority.
>
> --
> Steve Langasek                   Give me a lever long enough and a Free OS
> Debian Developer                   to set it on, and I can move the world.
> vorlon@debian.org                                   http://www.debian.org/
> _______________________________________________
> QCLUG mailing list
> QCLUG@qclug.org
> http://qclug.org/mailman/listinfo/qclug
>