Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: 2.1.1 and xterm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.1.1 and xterm



+ "John Koren" <email@hidden>:

> I understand that when DISPLAY is set to /tmp/launch-xxxx/:0 then
> X11 windows are channeled through this socket. But what is the
> benefit of doing it that way? What was wrong with the 'localhost'?

If the X server listens on localhost, then in order to be secure
against local users, you need at the very least to set and maintain a
cookie, which requires a slightly more complicated startup sequence
for the X server:  You need also to run xauth to get the cookie stored
in the user's .Xauthority file.  I am not sure how complicated that
would be; perhaps not very.

> Why can't launchd set the DISPLAY to ':0'?

Because it might have to be :1, or :2, or ... depending on what other
users are running X servers on the same machine.  And it is probably
beyond the current capabilities of launchd to deal with that extra
problem.

> As I mentioned earlier going through localhost still seems to
> work. If you go to terminal.app or xterm and set DISPLAY to ':0' or
> 'localhost:0' or 'your_computer_name:0' and try to launch an X
> application it will open correctly on your local screen.

It doesn't for me:  The X server runs with flags -nolisten tcp.
If I run  netstat -finet  that confirms nothing is listening on port
6000.  There must be something unusual with your setup.

- Harald
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)

This email sent to email@hidden

References: 
 >Re: 2.1.1 and xterm (From: "John Koren" <email@hidden>)
 >Re: 2.1.1 and xterm (From: Merle Reinhart <email@hidden>)
 >Re: 2.1.1 and xterm (From: "John Koren" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.