Skip to content

docs: recommend LSUIElement for packaged apps hiding the dock icon - #135

Merged
afonsojramos merged 1 commit into
mainfrom
docs/lsuielement-recommendation
Jul 29, 2026
Merged

docs: recommend LSUIElement for packaged apps hiding the dock icon#135
afonsojramos merged 1 commit into
mainfrom
docs/lsuielement-recommendation

Conversation

@afonsojramos

Copy link
Copy Markdown
Member

Summary

Documents that showDockIcon: false alone is best-effort on macOS: the runtime app.dock.hide() is a process transform that runs after the app has already launched as a regular dock app, and macOS can silently drop it when it races the launch activation (#123 added a one-shot re-assert for exactly that). gitify-app/gitify#3069 showed the transform can still be lost on a real machine, and the durable fix there was declaring LSUIElement in the packaged Info.plist (gitify-app/gitify#3117), so the process starts as an agent app and no dock tile ever exists.

This adds that recommendation where consumers will find it:

  • README.md: expands the showDockIcon row with a collapsible note explaining the startup re-assert, why hiding at runtime stays best-effort, and the LSUIElement / mac.extendInfo recipe for electron-builder.
  • src/types.ts: the same guidance on the showDockIcon JSDoc, so it surfaces in editor hover.

Docs only, no runtime change. lint:check and typecheck pass.

@afonsojramos
afonsojramos requested a review from setchy as a code owner July 29, 2026 21:12
@afonsojramos
afonsojramos merged commit 888d110 into main Jul 29, 2026
27 checks passed
@afonsojramos
afonsojramos deleted the docs/lsuielement-recommendation branch July 29, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant