[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>
swiftingly
Christopher Snowhill 2022-06-21 07:07:42 -07:00
parent 1a4d66a773
commit 26a20db383
1 changed files with 1 additions and 1 deletions

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;