1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-01-18 13:05:42 +08:00

Print more info if adding to icon cache did not work

This commit is contained in:
opa334 2023-12-12 15:18:47 +01:00
parent 8cdef95733
commit b136e3a292

View File

@ -236,6 +236,11 @@ bool registerPath(NSString *path, BOOL unregister, BOOL forceSystem) {
if (![workspace registerApplicationDictionary:dictToRegister]) {
NSLog(@"Error: Unable to register %@", path);
NSLog(@"Used dictionary: {");
[dictToRegister enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSObject *obj, BOOL *stop) {
NSLog(@"%@ = %@", key, obj);
}];
NSLog(@"}");
return false;
}
} else {