On startup, attempt to set the working directory to $HOME.

Fixes #913581.
This commit is contained in:
Jack Jansen 2004-06-03 14:15:50 +00:00
parent 2d1a2aa117
commit 76375745d5
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}