adding-tauri-system-tray

Build Tauri v2 system trays with menus, events, and runtime updates.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/FlukeSupakorn/klin-app --skill adding-tauri-system-tray-flukesupakorn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-tauri-system-tray
Source: https://github.com/FlukeSupakorn/klin-app/tree/main/.agents/skills/tauri-system-tray
Command: npx skills add https://github.com/FlukeSupakorn/klin-app --skill adding-tauri-system-tray-flukesupakorn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers through implementing a robust system tray in Tauri apps, covering tray icon setup, menu creation, event handling, and runtime tray updates to keep tools accessible from the notification area.

Core Features & Use Cases

  • Tray Icon & Tooltip setup using tauri::TrayIconBuilder to display a persistent tray presence.
  • Menu & Submenus construction with dynamic items that respond to user actions and platform-specific nuances.
  • Event Handling wiring for menu selections and tray icon events to show/hide windows, quit, or perform custom actions.
  • Runtime Updates demonstrating how to modify the tray icon, tooltip, and menu state without restarting the app.
  • Use Case: For a desktop app that needs quick access to common actions from the system tray, such as showing the main window or quitting the app.

Quick Start

Launch the sample app and verify the tray menu responds to left-click events by showing the main window.

Frequently Asked Questions about adding-tauri-system-tray

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a system tray to a Tauri v2 desktop app?

To add a system tray to a Tauri v2 app, you enable the tray feature flag in Cargo.toml and use tauri::TrayIconBuilder to construct a persistent tray icon with contextual menus and event callbacks.

How does event handling work for Tauri system tray menus?

Event handling for Tauri system tray menus works by wiring menu selection events and tray icon interactions to callbacks, enabling actions like showing or hiding the main window, quitting, or triggering custom app logic.

Can I update the Tauri tray icon and menu state at runtime?

Yes, you can update the Tauri tray icon, tooltip, and menu state dynamically at runtime without restarting the desktop app, allowing contextual menu items to reflect application state changes immediately.

Does Tauri v2 system tray support Windows, macOS, and Linux?

Yes, the Tauri v2 system tray implementation supports Windows, macOS, and Linux, allowing your desktop app to maintain a consistent notification area presence while handling platform-specific menu nuances.

What is the best way to create dynamic submenus in a Tauri system tray?

The best way to create dynamic submenus in a Tauri system tray is using TrayIconBuilder to construct menu items that respond to user actions and platform-specific nuances, then modifying those items through runtime updates.