[vlc-commits] macOS: Explicitly set the App icon

Marvin Scholz git at videolan.org
Tue May 9 09:48:44 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue May  9 09:47:51 2017 +0200| [92e03acf1602e2df355a4bb85a9e636b60d59a9c] | committer: Marvin Scholz

macOS: Explicitly set the App icon

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=92e03acf1602e2df355a4bb85a9e636b60d59a9c
---

 modules/gui/macosx/VLCMain.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/macosx/VLCMain.m b/modules/gui/macosx/VLCMain.m
index 41da11dd1a..b6d5cb3992 100644
--- a/modules/gui/macosx/VLCMain.m
+++ b/modules/gui/macosx/VLCMain.m
@@ -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"]];
         }
     }
 



More information about the vlc-commits mailing list