Skip to content

Instantly share code, notes, and snippets.

@dschniepp
Last active March 14, 2017 17:00
Show Gist options
  • Save dschniepp/fcdda56f0757773d84f3 to your computer and use it in GitHub Desktop.
Save dschniepp/fcdda56f0757773d84f3 to your computer and use it in GitHub Desktop.
Remove Dock Icon of Mac OSX App

#Remove Dock Icon of Mac OSX App

How to get rid of unnecessary dock icons.

##Generic

Navigate to the app and look in the container for info.plist. Open info.plist and add or modify the LSUIElement Element.

<key>LSUIElement</key>
<string>1</string>

If the App is from the Appstore you have to resign it.

sudo codesign -f -s - [/path/to.app]

Always backup your App and keep in mind you may have to sign in again.

##Twitter Example ###Edit Twitter.app/Contents/Info.plist

sudo plutil -replace LSUIElement -string "1" /Applications/Twitter.app/Contents/Info.plist

###Resign

sudo codesign -f -s - /Applications/Twitter.app

One line

sudo plutil -replace LSUIElement -string "1" /Applications/Twitter.app/Contents/Info.plist && sudo codesign -f -s - /Applications/Twitter.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment