Skip to catalogue

227

tray

also menu bar extra, system tray, NSStatusItem

Closing the window does not quit a tray app. Quitting is a menu item.

What is tray?

A tray or menu-bar app keeps running with no window. The icon has a menu. Closing the last window hides it. Quit is explicit. On macOS a menu-bar-only app usually does not appear in the Dock. Linux tray support depends on the desktop session.

Why does tray matter when vibe coding?

The generated app quits when the window closes, so the tray icon dies with it. Or it stays running and the user has no way to quit except the activity monitor.

How do you do tray?

Decide: document app quits on last window, tray app does not. Put Quit and Show in the tray menu. On macOS, set the activation policy to match.

How do you ask a model for tray?

(App) is a tray app. Closing the window hides it and leaves the process running. The tray menu has Show and Quit. Do not quit when the last window closes.

What goes wrong with tray?

A tray icon with no menu and no keyboard way to quit. Also a Dock icon plus a tray, so the user sees two apps.

adjacent