I want to change a flag in the Info.plist
of a signed OSX app (specifically I just want to set Application is agent (UIElement) = true
so that it doesn't show up in the dock).
First, it won't let me change the file directly, pretty much no matter what (it ignores sudo chmod
, sudo chflags
, etc)
So I copied the plist elsewhere, modified it and copied it back. Now OSX won't open the app because the code signature doesn't match.
I realize this is a general security issue, but does anyone have a workaround?
codesign --force --verbose=4 --sign "Developer ID Application: <your name> (<team ID>)" <application>
takes less than 10s.