Commit 76375745 authored by Jack Jansen's avatar Jack Jansen

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

Fixes #913581.
parent 2d1a2aa1
...@@ -7,8 +7,11 @@ ...@@ -7,8 +7,11 @@
// //
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#include <unistd.h>
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {
char *home = getenv("HOME");
if (home) chdir(home);
return NSApplicationMain(argc, argv); return NSApplicationMain(argc, argv);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment