3

Well, the title says it all:

Can I edit the Info.plist of an App so that is always starts hidden?

gentmatt
  • 49,722

1 Answers1

5

Open the info.plist in textedit and check if the key "LSUIElement" exist. If not, then add the following piece of code.

<key>LSUIElement</key>
<true/>

If it does, then just change the key from <true/> to <false/>.

Jason Salaz
  • 24,471
  • I have changed the permission using chmod. Yet, I can't save changes because the file is locked. – gentmatt Jan 08 '12 at 08:26
  • Save the file to your desktop, then copy it to the original location – theAmateurProgrammer Jan 08 '12 at 08:52
  • I've tried this with the Twitter.app. Now I have to enter the password every time I open twitter.... – gentmatt Jan 08 '12 at 09:02
  • 1
    @theAmateurProgrammer Note the change I made so that your markup actually shows up plain. Stack Exchange tries to render html tags automatically, so it just ate your tags. Use a 4 space prefix to denote blocks (across multiple lines) of code, or backtick pairs to denote inline code lines. – Jason Salaz Jan 08 '12 at 09:19
  • This does not make the app start hidden (i.e. like Cmd-H), but removed the Dock icon and menu bar. – Daniel Beck Jan 26 '12 at 19:02
  • Just a comment that the last sentence in the answer above is misleading. It says to change the key from true to false. However, if you want the icon NOT to show in the dock, you set the value to true (as shown in the code snippet of the answer). – M Katz Dec 31 '14 at 10:02