summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-28 15:54:23 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-28 15:54:23 -0700
commita3067a084cfec7d3e67e772e8a2f4cd39b019942 (patch)
tree3129732ea5bccadef2c10dad3112ebbc53f9292a
parent5bee1585a399eab0a7b6fc80ad476d81b5d227d3 (diff)
XQuartz: Unset CFProcessPath... blech
(cherry picked from commit ce4fbfbc75c62a092214d140c7550279aebe69ef)
-rw-r--r--hw/xquartz/quartzStartup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xquartz/quartzStartup.c b/hw/xquartz/quartzStartup.c
index 1b2a22623..ab4373435 100644
--- a/hw/xquartz/quartzStartup.c
+++ b/hw/xquartz/quartzStartup.c
@@ -70,6 +70,12 @@ void DarwinHandleGUI(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");
+
if (been_here) {
return;
}