[GH-ISSUE #277] Loose focus on startup (macOS) #139

Closed
opened 2026-03-02 23:44:55 +03:00 by kerem · 2 comments
Owner

Originally created by @jacksongoode on GitHub (Oct 26, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/277

Describe the bug
Starting causes the active terminal to loose focus. I think because of the mpris handler or whatever activity is being spawned outside the terminal that is taking focus.

Latest version, macOS

Originally created by @jacksongoode on GitHub (Oct 26, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/277 **Describe the bug** Starting causes the active terminal to loose focus. I think because of the mpris handler or whatever activity is being spawned outside the terminal that is taking focus. Latest version, macOS
kerem 2026-03-02 23:44:55 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Oct 27, 2023):

This is an expected behavior for MacOS if the media control feature is enabled. From the config document,

MacOS and Windows require an open window to listen to OS media event. As a result, spotify_player needs to spawn an invisible window on startup, which may steal focus from the running terminal. To interact with spotify_player, which is run on the terminal, user will need to re-focus the terminal. Because of this extra re-focus step, the media control support is disabled by default on MacOS and Windows to avoid possible confusion for first-time users.

AFAIK, there is no good workaround this focus losing issue on startup.

<!-- gh-comment-id:1783617316 --> @aome510 commented on GitHub (Oct 27, 2023): This is an expected behavior for MacOS if the media control feature is enabled. From the config document, > MacOS and Windows require an open window to listen to OS media event. As a result, spotify_player needs to spawn an invisible window on startup, which may steal focus from the running terminal. To interact with spotify_player, which is run on the terminal, user will need to re-focus the terminal. Because of this extra re-focus step, the media control support is disabled by default on MacOS and Windows to avoid possible confusion for first-time users. AFAIK, there is no good workaround this focus losing issue on startup.
Author
Owner

@aome510 commented on GitHub (Oct 28, 2023):

@jacksongoode Will close this for now. Lmk if you figure a way to resolve this issues or have any related issues.

<!-- gh-comment-id:1783885633 --> @aome510 commented on GitHub (Oct 28, 2023): @jacksongoode Will close this for now. Lmk if you figure a way to resolve this issues or have any related issues.
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#139
No description provided.