[NTLUG:Discuss] Slackware and Ximian Gnome

MadHat madhat at unspecific.com
Mon Sep 9 21:11:29 CDT 2002


On Mon, 2002-09-09 at 15:36, Patrick Parks wrote:
> I ran the command as a user. it is definately weird, and I am no closer
> to fixing it than when I started :) fun fun

su to root then run 'xhost' (with no parameters) and look at the output.
What does that say?

> 
> On Mon, 2002-09-09 at 13:30, MadHat wrote:
> 
> > This is what concerns me.
> > 
> > here is where it is dieing in the script
> > "if [ -z "$DISPLAY" ]
> > then
> >     bail_display
> > fi
> > 
> > xhost &> /dev/null
> > if [ $? -ne 0 ]
> > then
> >     bail_display
> > fi"
> > 
> > The first one just checks to make sure thet $DISPLAY has anything (-z
> > means if the string is zero length).
> > you said $DISPLAY is set to :0.0 right?
> > 
> > The second one is where I think it is dieing.  This is running the
> > command 'xhost &> /dev/null' and checking for a non-zero exit status,
> > indicating an error.  when you ran xhost, was it as root or as your
> > user?
> > 
> > -- 
> > MadHat at Unspecific.com
> > "Anyone who understands Linux/Unix, really understands the universe.
> >  Anyone who understands Windows, really understands Windows."
> >           - Richard Thieme, DefCon 10, 2002 
> > 
> > _______________________________________________
> > https://ntlug.org/mailman/listinfo/discuss
> > 
> > 
> -- 
> Patrick Parks
> patrick at patrickparks.com
> (972) 416-9927 Home
> (469) 939-6460 Mobile
> "May the SOURCE be with GNU"
-- 
MadHat at Unspecific.com
"Anyone who understands Linux/Unix, really understands the universe.
 Anyone who understands Windows, really understands Windows."
          - Richard Thieme, DefCon 10, 2002 




More information about the Discuss mailing list