]> git.saurik.com Git - uikittools.git/commitdiff
Attempt to block uicache until lsd is available. v1.1.4
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Sep 2012 17:46:22 +0000 (17:46 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 19 Sep 2012 17:46:22 +0000 (17:46 +0000)
uicache.mm

index 08d00c5dfa083fdc5480a7bb365f707c9ed94d01..1fdf84b7d4b4d933d444741880cac6bced9e4308 100644 (file)
@@ -92,6 +92,10 @@ int main(int argc, const char *argv[]) {
     Class $LSApplicationWorkspace(objc_getClass("LSApplicationWorkspace"));
     LSApplicationWorkspace *workspace($LSApplicationWorkspace == nil ? nil : [$LSApplicationWorkspace defaultWorkspace]);
 
+    if ([workspace respondsToSelector:@selector(invalidateIconCache:)])
+        while (![workspace invalidateIconCache:nil])
+            sleep(1);
+
     if (NSMutableDictionary *cache = [NSMutableDictionary dictionaryWithContentsOfFile:path]) {
         NSFileManager *manager = [NSFileManager defaultManager];
         NSError *error = nil;