Skip to content

Instantly share code, notes, and snippets.

@RobertYim
Forked from dschniepp/gist:fcdda56f0757773d84f3
Last active August 29, 2015 14:18
Show Gist options
  • Save RobertYim/2b604886d6198b092126 to your computer and use it in GitHub Desktop.
Save RobertYim/2b604886d6198b092126 to your computer and use it in GitHub Desktop.

#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 ###Open

sudo nano /Applications/Twitter.app/Contents/Info.plist

###Edit

<key>LSUIElement</key>
<false />

to

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

###Resign

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