Skip to content

fix: act on the active player when none is configured - #37

Open
mhlas7 wants to merge 1 commit into
StreamController:mainfrom
mhlas7:active-player-only
Open

fix: act on the active player when none is configured#37
mhlas7 wants to merge 1 commit into
StreamController:mainfrom
mhlas7:active-player-only

Conversation

@mhlas7

@mhlas7 mhlas7 commented Aug 22, 2026

Copy link
Copy Markdown

get_matching_ifaces returned every MPRIS player when no player was picked in the settings, so play, pause and toggle were broadcast to all of them. With a video paused and music paused, one press of a play/pause key resumed both at once, where a keyboard media key resumes only what played last.

Narrow the unconfigured case to the active player: whatever is playing, or whatever played last when nothing is. Several players that are all playing are still paused together, since a pause key should silence everything.

The docstrings already described this behaviour, as does actions.json. This change simply fixes the play/pause behavior to do what is claimed in the documentation.

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.

1 participant