You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement proposal: close to tray on desktop (keep running in the background) #111
Problem
On desktop, hitting X quits Vector entirely: the CloseRequested handler in src-tauri/src/lib.rs saves window state & shuts down the Nostr client. So once the window is closed, no msgs & no notifications until I reopen it. For a messenger that's a dealbreaker IMO, I want it running all day w/o a window parked on my taskbar. Signal Desktop, Telegram & Element all do this.
Proposal
A tray icon (system tray on Windows & Linux, menu bar on macOS) w/ Show & Quit, click to restore the window
A "Close to tray" toggle in Settings, on by default for Windows & Linux. When on, X hides the window & keeps the client connected; Quit in the tray menu does the real shutdown X does today
Nice to have: unread badge on the tray icon, start minimized & launch on login
Notes
Tauri 2 has this built in (tray-icon feature + TrayIconBuilder), & the CloseRequested hook is already there, it'd just prevent_close() + hide() when the toggle is on
Linux tray needs libayatana-appindicator, so it adds a dependency to the Linux packages
backgroundThrottling is set to throttle, so worth checking notifications still fire while the window is hidden
Related: Tray icon on Linux #42 (tray icon styling on Linux), this would be the base feature it builds on
Happy to send a PR if you're on board w/ the approach, I can test on Windows.
Activity