diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index c49ba368..fb9cd940 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -158,6 +158,8 @@ NSImage *icon = [[NSImage alloc] initWithContentsOfFile:iconPath]; // Use a default icon if none is defined. if (!icon) { + // this asumption may not be correct (eg. even though we're not the main bundle, it could be still be a regular app) + // but still better than nothing if no icon was included BOOL isMainBundle = (self.bundle == [NSBundle mainBundle]); NSString *fileType = isMainBundle ? (__bridge NSString *)kUTTypeApplication : (__bridge NSString *)kUTTypeBundle;