Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide temporary MPRIS players that are stopped #196

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

bluesabre
Copy link
Sponsor Member

This PR hides MPRIS players with a "Stopped" (vs "Playing" or "Paused") playback status and no desktop entry. This matches the temporary MPRIS players that browsers create when viewing content, and theoretically any app that creates a temporary MPRIS-enabled player. I don't think there's a use case for a stopped, unidentified MPRIS player, so this should be a safe patch. Let me know if you think otherwise!

MediaPlayer2 Spec Playback Status

Fixes #148

@bluesabre bluesabre marked this pull request as ready for review April 11, 2021 02:08
@bluesabre bluesabre requested a review from a team April 11, 2021 02:08
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Solves the linked issue and works as expected. Nice job!

@danirabbit danirabbit merged commit e3fdd99 into elementary:master Apr 13, 2021
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.

Remove player entry that no longer plays when the tab closes, not when the app closes
2 participants