greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.85k stars 470 forks source link

Player doesn't update properly when dash present in player name #1914

Closed DucNg closed 1 year ago

DucNg commented 1 year ago

Player is only detected when restarting i3status-rs and the playing item isn't updated when player name contains a dash in it's name. Could it be link to the busctl --user list | grep "org.mpris.MediaPlayer2." | cut -d ' ' -f1 not working properly in this case?

Steps to reproduce:

  1. Add a music block
  2. Play something on a player containing a dash in it's mpris name (eg: https://github.com/DucNg/fip-player)
  3. Player doesn't appear in the list (even when right clicking)
  4. Restart i3status-rs
  5. Player detected and working
  6. Quit player
  7. Restart player
  8. Playing item isn't properly updated

Sorry I don't code in Rust so it's hard to debug by myself, can someone take a look?

MaxVerevkin commented 1 year ago

This is a bug in one of our dependencies, which results in unexpected behavior when - is used is a bus name. Reported in https://github.com/dbus2/zbus/issues/382.