Skip to main content

we're deploying a VPN client that has both a Dock icon and menu bar icon. I want to hide the Dock icon when it's running.



I searched and found that this can be accomplished by using Plistbuddy to add a key to the Info.plist in the app bundle.



 /usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/Aviatrix VPN Client.app/Contents/Info.plist


If I run it from the terminal (as current user, or root), it works as expected, I can open the app and the Dock icon is hidden.



But I run from Jamf (via a script in a policy that installs the app package), the Info.plist gets modified, but the app will not open.



Any ideas?

in the logs: The code contains a Team ID, but validating its signature failed.


I'm actually surprised the app ran after your first modification (manually in Terminal) as it modified the app bundle and invalidated the code signing.


Reply