summaryrefslogtreecommitdiff
path: root/uicache.mm
diff options
context:
space:
mode:
Diffstat (limited to 'uicache.mm')
-rw-r--r--uicache.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/uicache.mm b/uicache.mm
index 29694d6..cbf3b8e 100644
--- a/uicache.mm
+++ b/uicache.mm
@@ -180,7 +180,10 @@ int main(int argc, const char *argv[]) {
for (NSString *identifier in bundles) {
NSString *path([bundles objectForKey:identifier]);
- [workspace registerApplication:[NSURL fileURLWithPath:path]];
+ if (kCFCoreFoundationVersionNumber >= 800)
+ [workspace registerApplicationDictionary:[after objectForKey:identifier]];
+ else
+ [workspace registerApplication:[NSURL fileURLWithPath:path]];
}
for (NSString *path in removed)