Re: Strange $DISPLAY behaviour with .Xauthority files
Re: Strange $DISPLAY behaviour with .Xauthority files
- Subject: Re: Strange $DISPLAY behaviour with .Xauthority files
- From: John Harper <email@hidden>
- Date: Fri, 10 Jan 2003 10:49:22 -0800
On Friday, January 10, 2003, at 07:01 AM, Vivien Mary Kendon wrote:
The difference is that X11.app creates Xauthority entries for the
server, whereas XDarwin doesn't
True, but an alien .Xauthority lying around can still upset XDarwin.
How does it do that? Does XDarwin look for existing .Xauthority files
when it starts up? I didn't think it would matter if it did though,
since the display names will be different if more than one X server is
running at once, and X11.app removes the Xauth keys it added before
exiting
I start X11 from a dock icon, and it modifies my (shared with suns)
.Xauthority in the default location. So it doesn't see that
environment
variable from my overall login to the machine.
Most likely your XAUTHORITY variable wasn't set when the X server was
launched
OK...but it then works to
start X apps from the X11 Applications menu, but not if I just type the
command in an xterm I opened form the X11 Applications menu! I get
then
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Maybe because your XAUTHORITY variable is preventing the client-side
access control from fetching the correct key? if you unset the
XAUTHORITY variable in the shell, do things start working?
If I move the .Xauthority out of the way then it works.
What is going on? What is different about starting from the menu vs
starting from the command line?
It may not pick up your environment variables when running from the menu
I'm not sure if this workaround is what I need?? I don't understand
the
defaults command well enough to want to mess around with it when I
don't
know how to undo what I did.
You can do:
defaults delete com.apple.x11 no_auth
defaults delete com.apple.x11 nolisten_tcp
to return to the original behaviour,
John
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.