[Sandbox] Update Info.plist generator

Plist generator now emits the output to the temporary folder, which we
have write permission to.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2022-06-21 07:07:42 -07:00
parent 1a4d66a773
commit 26a20db383

View file

@ -515,7 +515,7 @@ static PluginController *sharedPluginController = nil;
[stringList addObject:plistFooter];
NSFileHandle *fileHandle = [NSFileHandle fileHandleForWritingAtPath:@"/tmp/Cog_Info.plist" createFile:YES];
NSFileHandle *fileHandle = [NSFileHandle fileHandleForWritingAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"Cog_Info.plist"] createFile:YES];
if (!fileHandle) {
DLog(@"Error saving Info.plist!");
return;