Skip to content

Commit

Permalink
[Sandbox] Update Info.plist generator
Browse files Browse the repository at this point in the history
Plist generator now emits the output to the temporary folder, which we
have write permission to.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
  • Loading branch information
kode54 committed Jun 21, 2022
1 parent 1a4d66a commit 26a20db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Audio/PluginController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ - (void)printPluginInfo {

[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;
Expand Down

0 comments on commit 26a20db

Please sign in to comment.