aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
3.4k stars 149 forks source link

Media control spawned process is always in doc #373

Closed skoch13 closed 7 months ago

skoch13 commented 7 months ago

Describe the bug

Media control additional process is always in dock

To Reproduce Being on MacOS enable media_control

Expected behaviour Additional process is spawned, but it is not shown in the doc

Screenshots Screenshot 2024-02-16 at 15 07 47

Environment

Additional context Using with WezTerm, tried also with iTerm2.

aome510 commented 7 months ago

This is an intended behaviour, so it's not a bug. From the config doc,

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.

skoch13 commented 7 months ago

Yes, I mentioned that I read the docs. Is this process supposed to be hidden as stated in docs? This is why I opened the issue

aome510 commented 7 months ago

Yes, I mentioned that I read the docs. Is this process supposed to be hidden as stated in docs? This is why I opened the issue

The process corresponds to a separate window, so it's visible in the dock. MacOS shows all windows despite being hidden or not opened in the dock