Skip to main content
Question

hiding running app from Dock

  • May 15, 2020
  • 2 replies
  • 8 views

Forum|alt.badge.img+4

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?

2 replies

Forum|alt.badge.img+4
  • Author
  • Contributor
  • 16 replies
  • May 15, 2020

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


leslie_h
Forum|alt.badge.img+14
  • Employee
  • 100 replies
  • May 15, 2020

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.