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: Ben Byer <email@hidden>
- Date: Mon, 29 Oct 2007 17:44:45 -0700
On Oct 29, 2007, at 10:29 AM, Dave Williss wrote:
That would make it hard to write code to set DISPLAY to that, but
apparently it also works to just NOT set it at all. Somewhat
counter-intuitive to a veteran X11 user, but once you know it,
things are actually pretty easy.
One possible "fix" that Apple could do to make this change backwards
compatible for people who explicitly set DISPLAY to unix:0 or just ":
0" in various .profile, .login, .cshrc, or whatever: In libX11, if
DISPLAY is set to something that would make it local and the socket
isn't there, have it try the launchd socket. Of course, if the
launchd socket name is randomly generated, that might be a bit
difficult :-)
I ended up modifying our code to work the "new" way 10.5 and the
"old" way for previous versions.
If I understand what you're suggesting, that is in fact what we're
already doing. We modified libX11.dylib to detect the special launchd
DISPLAY format, and to handle that correctly. The only specific
application that I know has has difficulty with this is ds9, which is
one huge static library.
FWIW, the easiest way to handle this the Right Way on all platforms
would be something like
if($DISPLAY) exec ./myxapp
else open-x11 ./myxapp
-b
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden