Re: "connection to ":1.0" refused by server
Re: "connection to ":1.0" refused by server
- Subject: Re: "connection to ":1.0" refused by server
- From: Jeremy Huddleston <email@hidden>
- Date: Fri, 26 Sep 2008 16:26:53 -0700
On Sep 26, 2008, at 15:41, Ronald Cohen wrote:
Hmm, some of the thread seems to have gotten lost.
If I launch X11 from the dock on my MacBook Pro, then when I change
locations/networks, I fairly frequently get a message like the one
above, and can't launch x applications.
Where do you see this message? You should not be seeing that if you
use the default setup. Launching from the dock or not should make no
difference.
The problem is sometimes solved by turning on and off my network
connection (by unplugging the network cable, starting an xterm, then
reconnecting the cable, or doing the same by turning off airport).
Again, where are you seeing this problem? How are you trying to start
an X11 application? Are you doing it from an xterm? How did that
xterm get started (which determines where it got its environment). If
you started xterm from .xinitrc, then yes, it should be having that
$DISPLAY, and yes you should be having this problem (it's actually a
security "feature")... you won't have this problem if you just use the
launchd socket.
A previous respondent suggested that the problem was that the
DISPLAY environment variable was being set to 1:0 (or 0:0) rather
than to a launchd socket. Nothing under my control is doing that.
Well, then where is it getting set?
The observation in question is that if I start up X11 from the dock,
the terminal that I start from .xinitrc has display set to :0.0 (or :
1,0).
Yes, this is true. Why are you doing that?
But now I see that it doesn't matter how X11 is lauched -- the xterm
from .xinitrc has the display set as noted;
Yes, as I mentioned, this has to do with it being in .xinitrc... not
with how X11 is launched.
an xterm launched from X11's Applications menu, or from the plist's
app_to_run, starts up with the launchd socket as the display.
Yes.
SO I guess my solution is to configure the xterm in the plist to be
as I want for my initial xterm and not start one from .xinitrc.
Yes.
(Useful hint for others -- if one opens up org.x.X11.plist one
can find an entry "app_to_run"; probably set to xterm; one can add
arguments to it to change the color and size and add scroll bars.)
Yes, all this is also in the list FAQ if you're interested:
http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden