[PR #925] [MERGED] fix: keep main thread alive on Linux and when media-control is disabled - Issue 924 #927

Closed
opened 2026-03-03 00:01:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/925
Author: @Douglas019BR
Created: 2/10/2026
Status: Merged
Merged: 2/10/2026
Merged by: @aome510

Base: masterHead: hot-fix-924/App_closing_immediately_on_start_on_linux


📝 Commits (2)

  • 5a668f0 fix: keep main thread alive on Linux and when media-control is disabled
  • 12989a9 simplify

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 spotify_player/src/main.rs (+5 -1)

📄 Description

Fix Issue 924

The main thread was exiting prematurely, killing all spawned threads (UI, event handler, player watcher, etc.).

  • On Linux with media-control enabled, add a polling loop since there is no winit event loop to block the main thread (unlike macOS/Windows).
  • Without the media-control feature, add a polling loop for non-daemon mode to prevent the process from terminating while the UI is running.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/925 **Author:** [@Douglas019BR](https://github.com/Douglas019BR) **Created:** 2/10/2026 **Status:** ✅ Merged **Merged:** 2/10/2026 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `hot-fix-924/App_closing_immediately_on_start_on_linux` --- ### 📝 Commits (2) - [`5a668f0`](https://github.com/aome510/spotify-player/commit/5a668f00cb1a95c7c45af2b92ffa28b84021b826) fix: keep main thread alive on Linux and when media-control is disabled - [`12989a9`](https://github.com/aome510/spotify-player/commit/12989a9ebd1640da8de2c44178be54dadbecbd47) simplify ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/main.rs` (+5 -1) </details> ### 📄 Description Fix [Issue 924](https://github.com/aome510/spotify-player/issues/924) The main thread was exiting prematurely, killing all spawned threads (UI, event handler, player watcher, etc.). - On Linux with media-control enabled, add a polling loop since there is no winit event loop to block the main thread (unlike macOS/Windows). - Without the media-control feature, add a polling loop for non-daemon mode to prevent the process from terminating while the UI is running. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:01:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#927
No description provided.