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?
Asked
Active
Viewed 2,292 times
4
-
1@Matt upper right hand corner, where the wireless icon is. – Rafe Kettler Apr 04 '11 at 00:26
-
Fair enough, @Rafe. It's typically called the Menu bar, but I can see how it's basically the same thing. – Matt Ball Apr 04 '11 at 00:35
2 Answers
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