Skip to content

fix(tray): ensure linux tray quit terminates the process - #72

Merged
khaira777 merged 2 commits into
mainfrom
fix/linux-tray-quit
Jul 10, 2026
Merged

fix(tray): ensure linux tray quit terminates the process#72
khaira777 merged 2 commits into
mainfrom
fix/linux-tray-quit

Conversation

@khaira777

Copy link
Copy Markdown
Contributor

Fixes #14

Description

This PR addresses an issue on Linux where the application process fails to terminate when selecting "Quit" from the system tray menu while the main window is minimized.

Changes

  • Explicitly destroys the mainWindow when quitting from the Linux tray to ensure no lingering windows block the teardown.
  • Implements a robust app.exit(0) fallback timer (1000ms) to ensure the process shuts down completely even if the OS swallows the graceful will-quit event.
  • Completely localized to Linux; macOS and Windows behavior remains unaffected.

@khaira777
khaira777 requested a review from itsbkm as a code owner July 10, 2026 18:54
@khaira777
khaira777 force-pushed the fix/linux-tray-quit branch 2 times, most recently from d9d25d3 to bc8014c Compare July 10, 2026 19:18
@khaira777
khaira777 force-pushed the fix/linux-tray-quit branch from bc8014c to 0d5453d Compare July 10, 2026 19:39
@khaira777
khaira777 merged commit bcd999f into main Jul 10, 2026
10 checks passed
@khaira777
khaira777 deleted the fix/linux-tray-quit branch July 10, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux: System tray 'Quit' does not exit the app — must force quit

1 participant