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

[Bug] MPRIS module is persistent even when no media is being played #425

Closed
andrewsebek opened this issue May 5, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@andrewsebek
Copy link

Like the title says, I created a Waybar with a MPRIS module, and that caused the MPRIS module in Swaync to be persistent, and the module shows no info. When there's no media, my Waybar shows nothing, but the module appears in Swaync. I have a rice with different Waybar themes, and in two of them I included the MPRIS module. In the other 22, there's no module. If I pick one of those Waybar themes with no MPRIS module, and restart my system, the MPRIS module behaves as expected (only displayed when some media is being played) but once I pick one of the themes showed on screenshot, it becomes persistent, no matter if I switch themes.

Expected behavior
When no media is being played in one of the Waybar themes with MPRIS module on it, MPRIS module in Swaync should disappear

Screenshots
image

Desktop:

  • OS: Arch Linux
  • WM: Hyprland
@andrewsebek andrewsebek added the bug Something isn't working label May 5, 2024
@10f7c7
Copy link

10f7c7 commented May 15, 2024

check if playerctl is running in the background, sometimes the MPRIS module for waybar activates it

@andrewsebek
Copy link
Author

check if playerctl is running in the background, sometimes the MPRIS module for waybar activates it

Yes, actually it was running. I killed the process and the player widget in Swaync disappeared, but the MPRIS module showed no info when I opened a media player. I had to restart my Waybar to make the module available, and the problem persists. Maybe I need to think more about how to solve this... But yes, it's the MPRIS module causing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants