diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-28 15:52:24 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-28 15:52:24 -0700 |
commit | ce4fbfbc75c62a092214d140c7550279aebe69ef (patch) | |
tree | a2ab70be64e52e65aa2845f1a844328ab5c058c4 | |
parent | f807c987f85d77d29c6d8ef2dcebaa68a5972e50 (diff) |
XQuartz: Unset CFProcessPath... blech
-rw-r--r-- | hw/xquartz/quartzStartup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xquartz/quartzStartup.c b/hw/xquartz/quartzStartup.c index 7dab50b53..cd3c7a010 100644 --- a/hw/xquartz/quartzStartup.c +++ b/hw/xquartz/quartzStartup.c @@ -104,6 +104,12 @@ int main(int argc, char **argv, char **envp) { int i; 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 assert( pipe(fd) == 0 ); darwinEventReadFD = fd[0]; |