Skip to content

Conversation

ArijanJ
Copy link
Contributor

@ArijanJ ArijanJ commented Mar 16, 2025

Resolves #132 by manually looping through the players until one with the user-provided name is found.

Since this is what the output of playerctl -l looks like, this simply makes the name compatible with the playerctl CLI which most people are likely using:

firefox.instance_1_316
spotify

Previously, the internal players had to be named the exact Identity (e.g., "Mozilla Firefox" or "Spotify"), for this to work. After this PR, users will be able to use the names from playerctl -l to control the player they wish.

@ivomac
Copy link

ivomac commented May 30, 2025

I tried your version and --player=mpd now works for me too!

@ArijanJ
Copy link
Contributor Author

ArijanJ commented Jun 5, 2025

@ErikReider do you think we could merge this?

Copy link
Owner

@ErikReider ErikReider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @ArijanJ! Sorry again for the delay 😅

@ErikReider ErikReider merged commit e9ba0c5 into ErikReider:main Jul 6, 2025
1 check passed
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.

Unable to find some players (like Firefox)
3 participants