Hide Java application from command-tab application switcher and dock in OSX

后端 未结 1 1446
小蘑菇
小蘑菇 2021-01-02 17:21

I have a java application which has a tray icon in the top menu bar of OSX. When I minimize the application I would like it to disappear from the dock and the command-tab ap

相关标签:
1条回答
  • 2021-01-02 18:02

    As it turns out, SWT 3.5 had a bug which prevented it from properly reacting to the Info.plist that OSX requires to hide the application. This bug is fixed in SWT 3.6, and with Eclipse Helios being released today, I believe SWT is now officially at version 3.6

    To achieve the hidden icon, at the top of your info.plist file you simply need to add the following line:

    <key>LSUIElement</key>
    <true/>
    
    0 讨论(0)
提交回复
热议问题