Re: Finding my $DISPLAY programatically.
Re: Finding my $DISPLAY programatically.
- Subject: Re: Finding my $DISPLAY programatically.
- From: David Sankey <email@hidden>
- Date: Fri, 2 May 2008 15:50:16 +0100
At 15:38 +0100 2/5/08, Robert Tillyard wrote:
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.
Use ssh -Y instead and your problem's gone away.
If you want to keep a similar ease of login you can use a
passwordless keyphrase to automate the remote login.
Kind regards,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden