Skip to content

MacOS setting an ActivationPolicy prevent LSUIElement and LSBackground from functioning via editing Info.plist #261

@gliheng

Description

@gliheng

Hi, I'm trying to hide dock icon for my mac application. According to this,
I should set LSUIElement in Info.plist to true, and it should work, but it is not.
Setting LSUIElement and LSBackground in Info.plist are both useless for winit apps.

Further investigation, revealed that winit set ActivationPolicy to regular on start. Hence dock icon is shown. Maybe it should leave it at its default?

I tried that approach. It works fine for packaged mac apps. (dock icon is hidden when LSUIElement is true, shown otherwise). Only dock icon is not shown when it's launched as unpackaged executable. Maybe we should give user an oppotunity to bypass this setActivationPolicy call?

Metadata

Metadata

Assignees

No one assigned

    Labels

    D - easyLikely easier than most tasks hereDS - appkitAffects the AppKit/macOS backendH - help wantedSomeone please save usP - normalGreat to haveS - apiDesign and usability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions