ErikReider / SwayNotificationCenter

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

[Bug] One mpris instance always duplicated #314

Closed brendenhoffman closed 9 months ago

brendenhoffman commented 9 months ago

Please read through the README and the Man pages before submitting Please also make sure that there isn't any prior issue describing this bug

Describe the bug Duplicate mpris instance for one of the players. I have Spotify and 1 Youtube video paused in this gif. playerctl -l does not list duplicates. recording

To Reproduce Steps to reproduce the behavior:

  1. Start any mpris player

Expected behavior One instance per player

Please provide logs if you're experiencing notification errors / bugs Attach Gists for swaync logs by running G_MESSAGES_DEBUG=all swaync and (if applicable) application logs. https://gist.github.com/brendenhoffman/8ac3e45e0683ec76b6d421f5ecc2fb98

Desktop (please complete the following information):

ErikReider commented 9 months ago

Whick browser did you view the YouTube video in? Can't reproduce with Spotify Flatpak and Firefox/Chrome Flatpaks

brendenhoffman commented 9 months ago

Librewolf. Spotify will duplicate as well, it's not related to one client.

ErikReider commented 9 months ago

Can't reproduce. Please provide the output of this command: dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep mpris

brendenhoffman commented 9 months ago
$ dbus-send --print-reply --dest=org.freedesktop.DBus  /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep mpris
      string "org.mpris.MediaPlayer2.firefox.instance597078"
      string "org.mpris.MediaPlayer2.playerctld"
      string "org.mpris.MediaPlayer2.spotify"
ErikReider commented 9 months ago

"playerctld" is your issue

brendenhoffman commented 9 months ago

I see that. Thank you.