Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LSUIElement not working

I have an application that has LSUIElement = 1 in the Info.plist. When I run the application, a dock item and toplevel menu bar is created for it. Why?

EDIT:

I was using a library that was calling TransformProcessType(), clobbering my Info.plist configuration.

like image 500
anthony Avatar asked May 04 '10 02:05

anthony


2 Answers

Go to your Info.plist file, and add a new key-value pair, or type Boolean. Start typing in the key the phrase "Application is agent". It should auto-complete for you. Then check the checkbox.

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

like image 97
Dave DeLong Avatar answered Nov 17 '22 11:11

Dave DeLong


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

like image 42
drawnonward Avatar answered Nov 17 '22 12:11

drawnonward