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 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"));