mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:10:25 +02:00
Merge pull request #16070 from huffman/fix/mac-launcher-read-stdout
BUGZ-1293: Fix mac launcher not correctly reading interface version
This commit is contained in:
commit
afc9863e17
1 changed files with 5 additions and 4 deletions
|
@ -33,10 +33,11 @@
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSFileHandle * fh = [standardOut fileHandleForReading];
|
NSFileHandle* fh = [standardOut fileHandleForReading];
|
||||||
NSData * data = [fh readDataToEndOfFile];
|
NSData* data = [fh readDataToEndOfFile];
|
||||||
NSString * output = [NSString stringWithUTF8String:[data bytes]];
|
|
||||||
if (output == nil) {
|
NSString* output = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
||||||
|
if (output == nil || [output length] == 0) {
|
||||||
NSDictionary * userInfo = @{
|
NSDictionary * userInfo = @{
|
||||||
NSLocalizedDescriptionKey: NSLocalizedString(@"Couldn't start interface", nil)
|
NSLocalizedDescriptionKey: NSLocalizedString(@"Couldn't start interface", nil)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue