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
1 changed files with 5 additions and 0 deletions

View File

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