]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: os-macosx.mm don't changeCurrentDirectoryPath
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Feb 2022 21:44:56 +0000 (13:44 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Feb 2022 21:51:50 +0000 (13:51 -0800)
vm/os-macosx.mm

index bb008567226774aab4c6077e2945c45cde8a0876..71c70f7a489cf505f1a90c4e7c5a317c64a5e83e 100644 (file)
@@ -43,10 +43,6 @@ const char* default_image_path(void) {
     NSString* root = [path stringByDeletingLastPathComponent];
     NSString* resources = [path stringByAppendingPathComponent:@"Contents/Resources"];
 
-    if (!isatty(fileno(stdin))) {
-        [mgr changeCurrentDirectoryPath: root];
-    }
-
     NSString* imageInBundle = [resources stringByAppendingPathComponent:image];
     NSString* imageAlongBundle = [root stringByAppendingPathComponent:image];