Skip to content

Commit

Permalink
Fix quicklook dir not exist in new Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakey authored and Jakey committed Nov 23, 2018
1 parent 603dcc0 commit e82bc6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ProfilesManager/Controller/ProfilesManagerWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,14 @@ - (IBAction)quickLookTouched:(id)sender {
}
}
- (void)installProvisionQL{
NSString *installURL = [[[NSFileManager defaultManager] realHomeDirectory] stringByAppendingPathComponent:@"/Library/QuickLook/ProvisionQL.qlgenerator"];
NSString *quickLook = [[[NSFileManager defaultManager] realHomeDirectory] stringByAppendingPathComponent:@"/Library/QuickLook"];

NSString *installURL = [quickLook stringByAppendingPathComponent:@"ProvisionQL.qlgenerator"];

if(![[NSFileManager defaultManager] fileExistsAtPath:quickLook]){
[[NSFileManager defaultManager] createDirectoryAtPath:quickLook withIntermediateDirectories:YES attributes:nil error:nil];
}

NSString *provisionQLURL = [[NSBundle mainBundle] pathForResource:@"ProvisionQL" ofType:@"qlgenerator"];

NSString *function = JKLocalizedString(@"the plug-in can view the .ipa/.xcarchive/.appex/.mobileprovision/.provisionprofile files directly use the the blank space key.", nil);
Expand Down

0 comments on commit e82bc6a

Please sign in to comment.