[GH-ISSUE #1001] mpris: metadata sometimes needs a "reset" to update #3122

Closed
opened 2026-05-22 23:54:08 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @postsolar on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1001

Describe the bug

I'm yet to identify something actually clear and 100% reproducible (there might be multiple related issues), but this been bugging me for a while so I'll leave it here to hopefully get it going.

Music widget sometimes won't pick changes across switching players from different tabs in Firefox. I don't think Chrome is affected, though I also haven't been using Chrome that much recently.

I would've simply wrote it off as another Firefox<->Mpris bug, but curiously swaync handles it just fine.

To reproduce
Steps to reproduce the behavior:

One could try:

  1. Add module music.
  2. Open 2 tabs in Firefox with 2 different websites (e.g. soundcloud and bandcamp).
  3. Play website 1.
  4. Pause.
  5. Play website 2.
  6. Metadata still displayed for the track of website 1. Sometimes pausing and resuming helps "reset" it, sometimes not.

Expected behavior

Metadata reflects the last active player.

System information:

  • Distro: NixOS
  • Compositor: Hyprland
  • Ironbar version: 0.16.1 (bd9b3af5bc)

Configuration

Config
{
  "center": [
    {
      "format": "%R",
      "type": "clock"
    }
  ],
  "end": [
    {
      "truncate": {
        "max_length": 60,
        "mode": "start"
      },
      "type": "music"
    },
    {
      "type": "tray"
    },
    {
      "icons": {
        "layout_map": {
          "Carpalx*": "🇺🇸 (Carpalx)",
          "English*": "🇺🇸 (Colemak)",
          "Estonian*": "🇪🇪",
          "Russian*": "🇷🇺"
        }
      },
      "show_caps": false,
      "show_num": false,
      "show_scroll": false,
      "type": "keyboard"
    },
    {
      "format": "{icon} {percentage}%",
      "icons": {
        "muted": "󰝟",
        "volume_high": "󰕾",
        "volume_low": "󰕿",
        "volume_medium": "󰖀"
      },
      "max_volume": 150,
      "type": "volume"
    }
  ],
  "height": 30,
  "ironvar_defaults": {
    "hyprscrollerMode": "⇒"
  },
  "name": "hyprbar",
  "position": "top",
  "start": [
    {
      "hidden": [
        "special:magic",
        "special:special"
      ],
      "type": "workspaces"
    },
    {
      "class": "hyprscroller-mode",
      "label": "#hyprscrollerMode",
      "type": "label"
    },
    {
      "transition_type": "crossfade",
      "type": "bindmode"
    }
  ]
}
Styles

Additional context

Screenshots

Here's a screencast: watch the ironbar widget not updating on track change (and swaync updating)

https://github.com/user-attachments/assets/5aeabade-dfc0-4004-b520-566146499a4e

In this situation, it's only the track and artist not getting updated, but length and position do get updated.

Originally created by @postsolar on GitHub (May 20, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1001 **Describe the bug** <!-- A clear and concise description of what the bug is. --> *I'm yet to identify something actually clear and 100% reproducible (there might be multiple related issues), but this been bugging me for a while so I'll leave it here to hopefully get it going.* Music widget sometimes won't pick changes across switching players from different tabs in Firefox. I don't think Chrome is affected, though I also haven't been using Chrome that much recently. I would've simply wrote it off as another Firefox<->Mpris bug, but curiously [swaync](https://github.com/ErikReider/SwayNotificationCenter/) handles it just fine. **To reproduce** Steps to reproduce the behavior: One could try: 1. Add module `music`. 2. Open 2 tabs in Firefox with 2 different websites (e.g. soundcloud and bandcamp). 3. Play website 1. 4. Pause. 5. Play website 2. 6. Metadata still displayed for the track of website 1. Sometimes pausing and resuming helps "reset" it, sometimes not. **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Metadata reflects the last active player. **System information:** - Distro: NixOS - Compositor: Hyprland - Ironbar version: 0.16.1 (bd9b3af5bc82d82954f623896ef0f903e2582fe7) **Configuration** <!-- Share your bar configuration and stylesheet as applicable: --> <details><summary>Config</summary> ```json { "center": [ { "format": "%R", "type": "clock" } ], "end": [ { "truncate": { "max_length": 60, "mode": "start" }, "type": "music" }, { "type": "tray" }, { "icons": { "layout_map": { "Carpalx*": "🇺🇸 (Carpalx)", "English*": "🇺🇸 (Colemak)", "Estonian*": "🇪🇪", "Russian*": "🇷🇺" } }, "show_caps": false, "show_num": false, "show_scroll": false, "type": "keyboard" }, { "format": "{icon} {percentage}%", "icons": { "muted": "󰝟", "volume_high": "󰕾", "volume_low": "󰕿", "volume_medium": "󰖀" }, "max_volume": 150, "type": "volume" } ], "height": 30, "ironvar_defaults": { "hyprscrollerMode": "⇒" }, "name": "hyprbar", "position": "top", "start": [ { "hidden": [ "special:magic", "special:special" ], "type": "workspaces" }, { "class": "hyprscroller-mode", "label": "#hyprscrollerMode", "type": "label" }, { "transition_type": "crossfade", "type": "bindmode" } ] } ``` </details> <details><summary>Styles</summary> ```css ``` </details> **Additional context** <!-- Add any other context about the problem here. --> **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> Here's a screencast: watch the ironbar widget not updating on track change (and swaync updating) https://github.com/user-attachments/assets/5aeabade-dfc0-4004-b520-566146499a4e In this situation, it's only the track and artist not getting updated, but length and position do get updated.
Author
Owner

@postsolar commented on GitHub (Nov 21, 2025):

✔️ Didn't notice any of it in a while.

<!-- gh-comment-id:3564804310 --> @postsolar commented on GitHub (Nov 21, 2025): ✔️ Didn't notice any of it in a while.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#3122
No description provided.