summaryrefslogtreecommitdiffstats
path: root/Mac/OSX/PythonLauncher/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/OSX/PythonLauncher/main.m')
-rwxr-xr-xMac/OSX/PythonLauncher/main.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/OSX/PythonLauncher/main.m b/Mac/OSX/PythonLauncher/main.m
index 70323f2..6841433 100755
--- a/Mac/OSX/PythonLauncher/main.m
+++ b/Mac/OSX/PythonLauncher/main.m
@@ -7,8 +7,11 @@
//
#import <Cocoa/Cocoa.h>
+#include <unistd.h>
int main(int argc, const char *argv[])
{
+ char *home = getenv("HOME");
+ if (home) chdir(home);
return NSApplicationMain(argc, argv);
}