ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.15k stars 58 forks source link

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

Closed andrewsebek closed 1 month ago

andrewsebek commented 1 month ago

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:

10f7c7 commented 1 month ago

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

andrewsebek commented 1 month ago

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.