How to hide PyQt application icon from Mac OS X Dock

How to create a PyQt application (with which the user interacts exclusively through the system tray (in the menu bar)) is hiding from the Mac OS X docking station?

+4
source share
2 answers

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 application; in your Info.plist application add <key>LSUIElement</key><string>1</string> .

+3
source

If you use py2app to package your application. Set the plist parameter as follows:

 OPTIONS = { ... 'plist': {'LSUIElement': True}, ... } 
+2
source

Source: https://habr.com/ru/post/1346486/


All Articles