4

How do I make a PyQt application (with which the user interacts solely via the system tray (in the Menu Bar)) hide itself from the Mac OS X dock?

Community
  • 1
  • 1
Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187

2 Answers2

4

This is what you are looking for: http://uselessthingies.wordpress.com/2008/05/18/an-app-without-dock-icon-and-menu-bar/

tl;dr: Package(py2app/pyinstaller(recommended)) your app; in your app's Info.plist add <key>LSUIElement</key><string>1</string>.

Amit Upadhyay
  • 237
  • 3
  • 8
2

If use py2app to package your application. Set plist option like this:

OPTIONS = {
              ...
              'plist': {'LSUIElement': True},
              ...
          }
ax003d
  • 3,278
  • 29
  • 26