[Xquartz-dev] x11-exec
Peter O'Gorman
peter at pogma.com
Thu Dec 13 22:46:59 PST 2007
Jeremy Huddleston wrote:
> Really? It needs argv to be the full path? That doesn't make sense
> since this works:
>
> PATH=/Applications/TextEdit.app/Contents/MacOS TextEdit
>
Most of get bundle path etc are based around _NSExecutableGetPath,
which, if you look at
http://www.opensource.apple.com/darwinsource/10.5/dyld-95.3/src/dyldAPIs.cpp
there is a comment:
* Note that _NSGetExecutablePath will return "a path" to the executable
not a
* "real path" to the executable. That is the path may be a symbolic
link and
* not the real file.
Basically it usually works, but can get confused. It is less likely to
become confused if passed a full path to the real executable in argv[0].
Peter
--
Peter O'Gorman
http://pogma.com
More information about the Xquartz-dev
mailing list