Skip to content

Commit c49947f

Browse files
committed
Add LSUIElement to prevent dock icon flash on launch
Set INFOPLIST_KEY_LSUIElement = YES in both Debug and Release configurations. This prevents the dock icon from briefly appearing when the app launches, while still allowing runtime control via setActivationPolicy() to show the dock icon when needed (e.g., for Settings window and Sparkle update dialogs). The programmatic setActivationPolicy() approach alone cannot prevent this flash—it requires LSUIElement to be set in the Info.plist for a clean launch without the icon appearing first.
1 parent f2748d1 commit c49947f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LlamaBarn.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@
339339
GENERATE_INFOPLIST_FILE = YES;
340340
INFOPLIST_FILE = LlamaBarn/info.plist;
341341
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
342+
INFOPLIST_KEY_LSUIElement = YES;
342343
INFOPLIST_KEY_NSHumanReadableCopyright = "";
343344
LD_RUNPATH_SEARCH_PATHS = (
344345
"$(inherited)",
@@ -372,6 +373,7 @@
372373
GENERATE_INFOPLIST_FILE = YES;
373374
INFOPLIST_FILE = LlamaBarn/info.plist;
374375
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
376+
INFOPLIST_KEY_LSUIElement = YES;
375377
INFOPLIST_KEY_NSHumanReadableCopyright = "";
376378
LD_RUNPATH_SEARCH_PATHS = (
377379
"$(inherited)",

0 commit comments

Comments
 (0)