macOS: Explicitly set the App icon
authorMarvin Scholz <epirat07@gmail.com>
Tue, 9 May 2017 07:47:51 +0000 (09:47 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Tue, 9 May 2017 07:47:51 +0000 (09:47 +0200)
This will make sure the cone icon is displayed even when using the
vlc-osx-static binary. It makes it much easier to find the running
vlc instance, as before a confusing folder icon of the bin folder was
used, given that this is considered the "App bundle" by CFBundle.

modules/gui/macosx/VLCMain.m

index 41da11d..b6d5cb3 100644 (file)
@@ -256,6 +256,8 @@ static VLCMain *sharedInstance = nil;
 
             if (dayOfYear >= 354)
                 [[VLCApplication sharedApplication] setApplicationIconImage: [NSImage imageNamed:@"VLC-Xmas"]];
+            else
+                [[VLCApplication sharedApplication] setApplicationIconImage: [NSImage imageNamed:@"VLC"]];
         }
     }