File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2020 LSApplicationProxy *appProxy = [LSApplicationProxy applicationProxyForIdentifier: @" com.opa334.TrollStore" ];
2121 bundlePath = [appProxy.bundleURL path ];
2222 }
23+ if (!bundlePath) {
24+ LSApplicationProxy *appProxy = [LSApplicationProxy applicationProxyForIdentifier: @" com.opa334.TrollStoreLite" ];
25+ bundlePath = [appProxy.bundleURL path ];
26+ }
2327 if (!bundlePath) {
2428 NSString *bundleContainerPath = [[[MCMAppContainer containerWithIdentifier: @" com.opa334.TrollStore"
2529 error: nil ] url ] path ];
3236 }
3337 }
3438 }
39+ if (!bundlePath) {
40+ NSString *bundleContainerPath = [[[MCMAppContainer containerWithIdentifier: @" com.opa334.TrollStoreLite"
41+ error: nil ] url ] path ];
42+ NSArray <NSString *> *bundleItems =
43+ [[NSFileManager defaultManager ] contentsOfDirectoryAtPath: bundleContainerPath error: nil ];
44+ for (NSString *bundleItem in bundleItems) {
45+ if ([[bundleItem pathExtension ] isEqualToString: @" app" ]) {
46+ bundlePath = [bundleContainerPath stringByAppendingPathComponent: bundleItem];
47+ break ;
48+ }
49+ }
50+ }
3551 _binary = [bundlePath stringByAppendingPathComponent: @" trollstorehelper" ];
3652 });
3753 return [_binary fileSystemRepresentation ];
You can’t perform that action at this time.
0 commit comments