LSUIElement not working

I have an application that has LSUIElement = 1 in Info.plist. When I launch the application, a dock panel and a top-level menu bar are created for it. Why?

EDIT:

I used a library that called TransformProcessType (), clobbering my Info.plist configuration.

+6
cocoa info.plist macos lsuielement
source share
2 answers

Go to the Info.plist file and add a new key-value pair or enter Boolean. Start typing in the key the phrase "Application - Agent." It should autocomplete for you. Then check the box.

This is how I create my agent applications and it works every time!

+12
source share

1 should be a string, not a number (according to the LSUIElement documentation ). Something to try anyway.

+3
source share

All Articles