From 5ac04f0f1650731b68a285ed979cfedfa82b9f6c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 6 Apr 2010 11:43:46 +0000 Subject: Unregister old apps. --- control | 2 +- uicache.mm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/control b/control index c8c0a8a..0ae3e66 100644 --- a/control +++ b/control @@ -4,7 +4,7 @@ Section: Utilities Installed-Size: %S Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 1.0.3160-1 +Version: 1.0.3162-1 Description: UIKit/GraphicsServices command line access Name: UIKit Tools Author: Jay Freeman (saurik) diff --git a/uicache.mm b/uicache.mm index 904b175..4b477c6 100644 --- a/uicache.mm +++ b/uicache.mm @@ -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]); -- cgit v1.2.3