From 76375745d552e9c0e70f541e8205a0677acbba26 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 3 Jun 2004 14:15:50 +0000 Subject: [PATCH] On startup, attempt to set the working directory to $HOME. Fixes #913581. --- Mac/OSX/PythonLauncher/main.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mac/OSX/PythonLauncher/main.m b/Mac/OSX/PythonLauncher/main.m index 70323f2d02d..6841433f429 100755 --- a/Mac/OSX/PythonLauncher/main.m +++ b/Mac/OSX/PythonLauncher/main.m @@ -7,8 +7,11 @@ // #import +#include int main(int argc, const char *argv[]) { + char *home = getenv("HOME"); + if (home) chdir(home); return NSApplicationMain(argc, argv); }