diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-04-06 11:43:46 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-04-06 11:43:46 +0000 |
commit | 5ac04f0f1650731b68a285ed979cfedfa82b9f6c (patch) | |
tree | 8508797d7e4acb510cb232f246a1ea2e6fa9e117 /uicache.mm | |
parent | 020dfc54dc819f7c10e8eb43d4ddaaef834dca70 (diff) |
Unregister old apps.
Diffstat (limited to 'uicache.mm')
-rw-r--r-- | uicache.mm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -75,8 +75,10 @@ int main() { [cache writeToFile:path atomically:YES]; if (workspace != nil) - for (NSString *bundle in bundles) + for (NSString *bundle in bundles) { + [workspace unregisterApplication:[NSURL fileURLWithPath:bundle]]; [workspace registerApplication:[NSURL fileURLWithPath:bundle]]; + } if (false) error: fprintf(stderr, "%s\n", error == nil ? strerror(errno) : [[error localizedDescription] UTF8String]); |