|
#1
| |||
| |||
| Launch X11 application Hi, I'm currently trying to launch an X11 application from an Objective C program but it nevers works, the graphical mode of the X11 app is never launched when I try to use NSTask, it only launches the app in shell mode. What I need is to pass the command line to launch the X11 app directly in the X11 xterm but I'd like to do it using code (for the moment I launch X11 and then the user has to type the app X11 name with the name of the file that must be opened thanks to the app). If someone had the solution it would be great, PLEASE HEEEEELP ! |
|
#2
| |||
| |||
| The X11 app requires the DISPLAY environment variable to be set appropriately. Open xterm in X11 and check with echo $DISPLAY how this variable is set. You must set it globally (in environment.plist) so that your Cocoa program inherits it. For details about environment.plist look here: http://developer.apple.com/qa/qa2001/qa1067.html For a convenient tool to edit your environment.plist look here: http://www.rubicode.com/Software/Bundles.html |
![]() |
| Thread Tools | |
|
|