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

Re: X11 Question


  • Subject: Re: X11 Question
  • From: Nathan Brazil <email@hidden>
  • Date: Fri, 26 Aug 2005 01:16:05 -0700

Turns out open-x11 is just a bash script that calls "open -a X11" on arguments you pass, one at a time.

It took some re-arranging of my code, because environment variables that are set prior to running open are not retained. But I eventually got it to work.

Thanks!

--

On Aug 25, 2005, at 12:04 AM, Chris Ridd wrote:

On 25/8/05 7:46, Nathan Brazil <email@hidden> wrote:


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?


Run /usr/bin/open-x11? :-)

Cheers,

Chris





_______________________________________________ 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
References: 
 >Re: X11 Question (From: Chris Ridd <email@hidden>)

  • Prev by Date: RE: Application icon
  • Next by Date: Re: [Moderator] Re-posts (Re: How to draw correct underline ?) (SOLVED)
  • Previous by thread: Re: X11 Question
  • Next by thread: Re: X11 Question
  • Index(es):
    • Date
    • Thread