commit | 76375745d552e9c0e70f541e8205a0677acbba26 | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Thu Jun 03 14:15:50 2004 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Thu Jun 03 14:15:50 2004 +0000 |
tree | c1835a033a84e5139e5cb98a50462e5f6e86518c | |
parent | 2d1a2aa117f1cce9b4206032fcdac3632fa6a819 [diff] [blame] |
On startup, attempt to set the working directory to $HOME. Fixes #913581.
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); }