[solved] Add key to Info.plist via Projucer

Hi everybody,
I want to hide my application from the dock (because it has already a SystemTrayIconComponent). That works, if I amend this key to the Info.plist:

	<key>LSUIElement</key>
	<true/>

So to make the Projucer write that key, I need to put that into the jucer file, but I didn’t find it documented anywhere. Does anybody know how to do that?
Only related sounding field: PList Preprocessor Definitions, but no clue…

Or will the Projucer needed to be extended with a select box “hide App from Dock” (and if applicable the same for windows, will need to figure that next)…

Cheers,
Daniel

1 Like

What you want to do is doable by using the Custom PList field. You can have a look at Projucer.jucer for an example.

And since a picture is better than thousand words:

4 Likes

Great, thanks @McMartin!
The image helped, since I thought first, it would be sufficient to add the XML key and value, but that wouldn’t work.
But complete with plist and dict tag, it works like a charm!

Thanks again!

Is it possible to add a Custom PList entry for one type of plugin build only?

For example, if I wanted a PList entry to apply to an AU build (and not VST3 or AAX), could I specify that?