Re: X11 apps in XCode
Re: X11 apps in XCode
- Subject: Re: X11 apps in XCode
- From: Ronnie Misra <email@hidden>
- Date: Fri, 27 Feb 2004 11:31:01 -0800
On Feb 27, 2004, at 10:16 AM, Brent Gulanowski wrote:
I am trying to run X11 applications from XCode but it is not working. I
think I read this somewhere, but damned if I can now find how to set
the DISPLAY variable for normal applications like XCode. Even if I put
the ugly hack of forcing DISPLAY to have a value in .profile or
something, that apparently only affects terminal.
<http://developer.apple.com/qa/qa2001/qa1067.html>
Q: How do I set environment for all processes launched by a specific
user?
A: It is actually fairly simple process to set environment variables
for processes launched by a specific user.
There is a special environment file which loginwindow searches for
each time a user logs in. The environment file is:
~/.MacOSX/environment.plist (be careful it's case sensitive).
This page then goes on to explain how you can use PropertyListEditor to
set values in that plist, but I prefer the much simpler:
% defaults write ~/.MacOSX/environment DISPLAY :0.0
Note that hard-coding your DISPLAY to :0.0 will cause bad things to
happen if you use Fast User Switching, so if you want to remove that
environment variable, run:
% defaults delete ~/.MacOSX/environment DISPLAY
Ronnie
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.