## Feature Request: Native System Tray Support on Linux (Wayland)
Problem
On Linux with KDE Plasma 6 on Wayland, clicking the ✕ close button fully quits Proton Mail. There is no option to minimize it to the system tray and keep it running in the background, which means missed notifications and having to reopen the app every time.
Requested behavior
When the user clicks the close button, the app should minimize to the system tray instead of quitting. A tray icon should appear with:
- Single click: show/hide the window
- Right-click menu: "Show / Hide" and "Quit"
This is standard behavior in desktop mail clients like Thunderbird, and is especially important for a mail client users want running persistently in the background.
Platform
- OS: Linux (Arch-based)
- Desktop Environment: KDE Plasma 6
- Display Server: Wayland
- App version: 1.13.0
Implementation note
Electron's native Tray API supports this on Linux. The core logic would be: intercept the close event with event.preventDefault(), hide the window from the taskbar via win.setSkipTaskbar(true) + win.minimize(), and restore it on tray click. On Wayland, the KWin DBus scripting API (qdbus6 org.kde.KWin) can be used to reliably activate the window when requested.
This is a frequently requested feature by Linux users — please consider adding it natively.