Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 application switcher and only be in the tray. I've seen other OSX applications do this, so I do believe it is possible, but as a newbie to OSX I have no idea how to achieve it.

Any help would be appreciated!

like image 800
mystro Avatar asked Jun 08 '10 08:06

mystro


People also ask

How do I hide active apps on Mac Dock?

Steps to follow: Start Dock Dodger (you might have to allow opening this app from your macOS Security Settings because it's an unidentified 3rd party developer. Drag-and-drop the Application you want to hide on the Dock Dodger window. Quit Dock Dodger. Simply (re)start the Application you want to hide.

How do you hide an application on a Mac?

You can hide one App or every other App than the one you're using. You'll find this command in the menu next to the Apple menu is the Application Menu. It'll be whatever the name of the application you're currently using. In this menu is the choice to Hide – Command+H.

How do I hide icons on Mac Dock?

On your Mac, choose Apple menu > System Preferences, then click Dock & Menu Bar . In the Dock & Menu Bar section in the sidebar, change the options you want. For example, you can change how items appear in the Dock, adjust its size, locate it along the left or right edge of the screen, or even hide it.

What does command-Tab do on Mac?

To switch between open apps, press Command-Tab. Release the keys when the app you want is selected.


1 Answers

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/>
like image 73
mystro Avatar answered Oct 18 '22 08:10

mystro