diff options
Diffstat (limited to 'Mac')
-rwxr-xr-x | Mac/OSX/PythonLauncher/main.m | 3 |
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); } |