setting DISPLAY [was: Once again, X11.app bugs]
setting DISPLAY [was: Once again, X11.app bugs]
- Subject: setting DISPLAY [was: Once again, X11.app bugs]
- From: Massimo Marino <email@hidden>
- Date: Tue, 13 Jan 2004 10:30:25 +0100
Do something of the like:
(for (t)csh,
if (! $?DISPLAY) then
if ($?REMOTEHOST) then
setenv DISPLAY ${REMOTEHOST}:0.0
else
setenv DISPLAY 0.0
endif
endif
or, in the case of bash:
if [ -z "$DISPLAY" ]; then
if [ -n "$REMOTEHOST" ]; then
export DISPLAY=$REMOTEHOST:0.0
else
export DISPLAY=:0.0
fi
fi
Cheers
Massimo
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.