Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding my $DISPLAY programatically.



Hello,

Is there a way to programmatically translate the launchd style DISPLAY (i.e. /tmp/launch-idaF18/:0) into a usable DISPLAY (i.e. 172.16.1.1:0.0)?

Some background:

Our main system is made up of lots of X11 applications running on one or more remote UNIX servers. The user would have a Mac with a Cocoa application that I have written to provide a menu system for launching various parts of our system on the remote hosts.

I use rexec to get the remote applications to run which works pretty well, however, I'm currently having to hard code the DISPLAY to <my IP>:0.0 because the remote systems don't understand the launchd style DISPLAY.

The problem with a hard coded DISPLAY is that if X11.app crashes it often runs again with a different DISPLAY, it won't go back to 0:0 until a reboot, also if another user uses fast user switching and runs another X11.app it is not 0:0.

Thanks, regards, Rob.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.