Re: X11 in Leopard: xterm on start-up
Re: X11 in Leopard: xterm on start-up
- Subject: Re: X11 in Leopard: xterm on start-up
- From: Rich Cook <email@hidden>
- Date: Tue, 30 Oct 2007 11:42:16 -0700
On Oct 30, 2007, at 7:09 AM, Dave Williss wrote:
That's almost what I meant. If DISPLAY is set, it should try
whatever it would
do normally and then, *only if that failed* and it was set to :0
(or unix:0 which
I believe maps to the same thing), try the launchd socket. Again,
it has to be
able to tell what it was first.
That way, it would work even if the user had set DISPLAY to unix:0
or :0 in
their .profile or wherever. You would *not* want to just treat all
DISPLAY
strings that map to a local connection as the launchd socket
because that would
preclude somebody trying to run a *different* X server.
Somebody also pointed out that localhost:0 means the local display
but using
TCP/IP protocol instead of Unix sockets. If X11 is already
running, then
attempting to connect to localhost:0 would just work. If it's not
running, that
would fail (probably after a few seconds timeout on the socket
connection).
In that case, libX11 could connect once through the launchd socket
to get X11
up and then try localhost:0 again for the "real" connection. This
would make
your client take longer to launch using "localhost:0" if X11 isn't
running than it
would using ":0", but if you're just using "localhost:0" to test GL
vs GLX, you
probably fall under the category of people who keep X11 running all
the time
anyway and would never notice :-)
Dave Williss
Please take a look at the link to the patch he made and let us know
if it looks right to you. Thanks!
http://gitweb.freedesktop.org/?p=xorg/lib/
libxtrans.git;a=commitdiff;h=6217f34977bfa17b66b89df5d45420774abedcb3
--
βThe primary task of most software projects is to discover and
resolve these unknowns rather than to build a system. -- Philip G.
Armour
--
Richard Cook
β Lawrence Livermore National Laboratory
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
β (office) (925) 423-9605
β (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden