10.13+ launch wasn't.

This commit is contained in:
Kelvin Sherlock 2021-05-31 10:39:24 -04:00
parent 7b67522156
commit 5ffc85f9fc
1 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,13 @@ static NSMutableSet *LogWindows;
}
}
-(void)appendAttributedString: (NSAttributedString *)string {
if ([string length]) {
[[_textView textStorage] appendAttributedString: string];
}
}
-(NSError *)runTask: (NSTask *)task {
@ -109,8 +116,8 @@ static NSMutableSet *LogWindows;
[task launchAndReturnError: &error];
if (error) {
NSLog(@"NSTask error. Path = %s error = %@", path, error);
return error;
}
return error;
} else {
path = [[task launchPath] fileSystemRepresentation];
wd = [[task currentDirectoryPath] fileSystemRepresentation];