System Tray Icon Instant

A system tray icon, also known as a notification area icon or systray icon, is a small graphical icon that appears in the system tray, typically located in the bottom right corner of the screen in Windows or the top right corner in macOS and Linux.

const Tray, Menu = require('electron'); let tray = new Tray('icon.png'); const contextMenu = Menu.buildFromTemplate([ label: 'Show', click: () => win.show() , label: 'Quit', click: () => app.quit() ]); tray.setToolTip('My App'); tray.setContextMenu(contextMenu); system tray icon

The system tray (or notification area) is the section of your taskbar that holds the clock and icons for background apps like Wi-Fi, volume, or OneDrive. A system tray icon, also known as a

System tray icons fundamentally differ from standard desktop shortcuts or pinned taskbar items. Instead of acting as deep links to launch a application, they represent software that is already executing in the system RAM. HOWTO: Use the System Tray Directly from Visual Basic Instead of acting as deep links to launch

| Platform | Official Term | Key Docs | |----------|--------------|-----------| | Windows | Notification Area | Microsoft: Notifications Area (Win32) | | macOS | Menu Bar Extra | Apple Human Interface Guidelines – Menu Bar Extras | | Linux (FreeDesktop) | System Tray (StatusNotifierItem) | FreeDesktop.org System Tray Specification |

The system tray icon serves several purposes:

system tray icon