XQuartz: Unset CFProcessPath... blech
(cherry picked from commit ce4fbfbc75
)
This commit is contained in:
parent
0c2312b21b
commit
d5ab89f4f1
|
@ -98,6 +98,12 @@ int main(int argc, char **argv, char **envp) {
|
||||||
int i;
|
int i;
|
||||||
int fd[2];
|
int fd[2];
|
||||||
|
|
||||||
|
/* Unset CFProcessPath, so our children don't inherit this kludge we need
|
||||||
|
* to load our nib. If an xterm gets this set, then it fails to
|
||||||
|
* 'open hi.txt' properly.
|
||||||
|
*/
|
||||||
|
unsetenv("CFProcessPath");
|
||||||
|
|
||||||
// Make a pipe to pass events
|
// Make a pipe to pass events
|
||||||
assert( pipe(fd) == 0 );
|
assert( pipe(fd) == 0 );
|
||||||
darwinEventReadFD = fd[0];
|
darwinEventReadFD = fd[0];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user