diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-07-30 10:47:15 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-07-30 10:47:15 +0000 |
commit | 916744716282b757f299a1c0c3bc97d6239e5924 (patch) | |
tree | 140bd08010dc621b06ada2e7a7c81b46c54da239 | |
parent | 7e0ec87a1c6cc62738348fe93656b5a4d81633a3 (diff) |
Fix new icon cache support.
-rw-r--r-- | control | 1 | ||||
-rw-r--r-- | uicache.mm | 14 |
2 files changed, 8 insertions, 7 deletions
@@ -9,3 +9,4 @@ Description: UIKit/GraphicsServices command line access Name: UIKit Tools Author: Jay Freeman (saurik) <saurik@saurik.com> Depiction: http://cydia.saurik.com/info/uikittools/ +Depends: coreutils-bin @@ -85,16 +85,16 @@ int main() { fprintf(stderr, "%s\n", error == nil ? strerror(errno) : [[error localizedDescription] UTF8String]); } else fprintf(stderr, "cannot open cache file. incorrect user?\n"); - unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-icons"] UTF8String]); - unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-icons.plist"] UTF8String]); + unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-icons", home] UTF8String]); + unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-icons.plist", home] UTF8String]); - unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-smallicons"] UTF8String]); - unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-smallicons.plist"] UTF8String]); + unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-smallicons", home] UTF8String]); + unlink([[NSString stringWithFormat:@"%@/Library/Caches/com.apple.springboard-imagecache-smallicons.plist", home] UTF8String]); - system([[NSString stringWithFormat:@"rm -rf %@/Library/Caches/SpringBoardIconCache"] UTF8String]); - system([[NSString stringWithFormat:@"rm -rf %@/Library/Caches/SpringBoardIconCache-small"] UTF8String]); + system([[NSString stringWithFormat:@"rm -rf %@/Library/Caches/SpringBoardIconCache", home] UTF8String]); + system([[NSString stringWithFormat:@"rm -rf %@/Library/Caches/SpringBoardIconCache-small", home] UTF8String]); - system([[NSString stringWithFormat:@"rm -rf %@/Library/Caches/com.apple.IconsCache"] UTF8String]); + system([[NSString stringWithFormat:@"rm -rf %@/Library/Caches/com.apple.IconsCache", home] UTF8String]); notify_post("com.apple.mobile.application_installed"); |