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: Ronald Cohen <email@hidden>
- Date: Fri, 26 Sep 2008 15:41:37 -0700
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. 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).
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.
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). But now I see that it doesn't matter how X11 is lauched -- the
xterm from .xinitrc has the display set as noted; 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.
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.
(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.)
Thanks to those who have responded...
Ron Cohen
On Sep 26, 2008, at 2:43 PM, Jeremy Huddleston wrote:
On Sep 26, 2008, at 14:20, Ronald Cohen wrote:
Daniel, thanks for this reply. So I checked and found that I
don't have such a plist; (nor do I have a directory ~/.MacOSX).
Furthermore after a reboot I found that my display variable upon
dock launch of X11 was 0:0 instead of 1:0, so whatever is happening
is not the result of an explicit setting of the environment variable.
It does seem that if I start up X11 by starting an xterm from
terminal.app, then the resulting xterm is fine. But an additional
xterm started by my .xinitrc file has the display variable 0:0
That is correct. Anything you put in your .xinitrc is started using
the traditional socket rather than the launchd socket.
(same as if I launch X11 from the dock).
Huh? What is the same as what?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden