• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: X11 in Leopard: xterm on start-up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: X11 in Leopard: xterm on start-up
      • From: "Mark J. Reed" <email@hidden>
References: 
 >X11 in Leopard: xterm on start-up (From: Robert Tillyard <email@hidden>)
 >Re: X11 in Leopard: xterm on start-up (From: "Chris Linstid" <email@hidden>)
 >Re: X11 in Leopard: xterm on start-up (From: Martin Costabel <email@hidden>)
 >Re: X11 in Leopard: xterm on start-up (From: Ben Byer <email@hidden>)
 >Re: X11 in Leopard: xterm on start-up (From: Dave Williss <email@hidden>)
 >Re: X11 in Leopard: xterm on start-up (From: Dave Williss <email@hidden>)

  • Prev by Date: Re: rdesktop and X11 performance
  • Next by Date: Re: X11 and Leopard
  • Previous by thread: Re: X11 in Leopard: xterm on start-up
  • Next by thread: Re: X11 in Leopard: xterm on start-up
  • Index(es):
    • Date
    • Thread