Merge pull request #507 from rdoering/master

Solved the problem: crashing on closing preview no mac-sierra
This commit is contained in:
Michael Starke
2016-11-10 19:39:39 +01:00
committed by GitHub

View File

@@ -117,9 +117,9 @@
}
+ (void)_runCleanupForPath:(NSString *)path {
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:@"/usr/bin/srm"];
[task setArguments:@[@"-m", path]];
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:@"/bin/rm"];
[task setArguments:@[@"-P", path]];
[task launch];
[task waitUntilExit];
}