Finding my $DISPLAY programatically.
Finding my $DISPLAY programatically.
- Subject: Finding my $DISPLAY programatically.
- From: Robert Tillyard <email@hidden>
- Date: Fri, 2 May 2008 15:38:24 +0100
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)
This email sent to email@hidden