• 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
X11 Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

X11 Question


  • Subject: X11 Question
  • From: Nathan Brazil <email@hidden>
  • Date: Wed, 24 Aug 2005 23:46:18 -0700

Hi.  I am writing a X11 application launcher that does the following:

1. Launch X11 if it is not already launched
2. Set the DISPLAY environment variable
3. Set some other environment variables
4. Launch the X11 application

All is well, except for step 2, where I need to figure out the user's X11 display (:0, :1, etc.). I see that if I do a grep for X11, one of the X11 instances will tell me the the display on the command-line it was started with, but that seems inelegant to me.

Is there a better way?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: X11 Question
      • From: Chris Ridd <email@hidden>
  • Prev by Date: Re: How to control "focus" programmatically
  • Next by Date: Re: X11 Question
  • Previous by thread: (SORRY & IGNORE) Re: How to control "focus" programmatically
  • Next by thread: Re: X11 Question
  • Index(es):
    • Date
    • Thread