summaryrefslogtreecommitdiff
path: root/uicache.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-02-06 09:20:52 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2013-02-06 10:12:16 +0000
commit4ab9b1c71900d5516424dcaf8b0dcb329d5a839f (patch)
treebe25d2c0d538de194abb5df3aa62363485fd20d0 /uicache.mm
parentc9bb7c8ef256cba01e9e48a2c5f130ab31838905 (diff)
Delete all of the .csstore files.
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 1fdf84b..020ec8e 100644
--- a/uicache.mm
+++ b/uicache.mm
@@ -48,6 +48,8 @@
#include <MobileCoreServices/LSApplicationWorkspace.h>
+#include "csstore.hpp"
+
@interface NSMutableArray (Cydia)
- (void) addInfoDictionary:(NSDictionary *)info;
@end
@@ -86,7 +88,8 @@ int main(int argc, const char *argv[]) {
@try {
- unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.LaunchServices-036.csstore", home] UTF8String]);
+ DeleteCSStores([home UTF8String]);
+
system("killall lsd");
Class $LSApplicationWorkspace(objc_getClass("LSApplicationWorkspace"));