Windows: Add close-to-tray support (keep running in background when console closes) - #72
Open
edmonbpb wants to merge 8 commits into
Open
Windows: Add close-to-tray support (keep running in background when console closes)#72edmonbpb wants to merge 8 commits into
edmonbpb wants to merge 8 commits into
Conversation
added 8 commits
August 1, 2026 04:22
On Windows, clicking the console window's close (X) button now keeps Aether running in the background instead of exiting. A tray icon with an Exit item appears in the notification area. The feature is enabled by default on Windows; set AETHER_CLOSE_TO_TRAY=0 to restore the old close-to-exit behavior. - New tray.rs module (Windows-only) with console Ctrl handler + tray icon - Windows-only tray-icon dependency (0.24, common-controls-v6) - Updated README.md and README.fa.md with feature docs - Updated Cargo.lock with tray-icon dependency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds "close-to-tray" functionality for the Windows build. When the user closes the console window (clicking the X button), Aether detaches from the console and continues running the tunnel in the background. A system tray icon appears with an "Exit" menu item for clean shutdown.
How it works
Platform & dependencies
Configuration
Testing
Notes
Fixes the issue of Aether exiting completely when the console window is closed on Windows.