On startup, attempt to set the working directory to $HOME.
Fixes #913581.
This commit is contained in:
parent
2d1a2aa117
commit
76375745d5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue