#16102

Media toast shows MPRIS Identity instead of track metadata for Chromium/Electron players

OpenWarrington-Sealeopened 1d ago

Description

When pressing the "Next/Previous Track" media keys, Omarchy's media toast is displaying the MPRIS player's Identity string instead of the actual track title and artist. The track metadata is correctly being exposed over MPRIS, it's just not being used by the toast.

Steps to reproduce

  1. Open Pear Desktop (a fork of th-ch/youtube-music, running as an Electron/Chromium app)
  2. Start playing any song
  3. Press the "Next Track" keyboard media key
  4. Observe the Omarchy toast that appears

Expected behavior

The toast should display the track information from MPRIS metadata (e.g. "Pjanoo (Radio Edit) - Eric Prydz").

Actual behavior

The toast displays the player's MPRIS Identity (com.github.th-ch.youtube-music) instead of the song information.

Evidence

MPRIS Identity

busctl --user get-property org.mpris.MediaPlayer2.chromium.instance20338 /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2 Identity
s "com.github.th-ch.youtube-music"

MPRIS Metadata (correctly populated)

busctl --user get-property org.mpris.MediaPlayer2.chromium.instance20338 /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Metadata
a{sv} 6 "mpris:artUrl" s "file:///tmp/.org.chromium.Chromium.yIHR0F" "mpris:length" x 157432018 "mpris:trackid" o "/org/chromium/MediaPlayer2/TrackList/TrackDD78924EC9EA027A43B7F1D9AED4369E" "xesam:album" s "Pjanoo (Radio Edit)" "xesam:artist" as 1 "Eric Prydz" "xesam:title" s "Pjanoo (Radio Edit)"

Player Info

  • Binary: /usr/lib/electron42/electron /usr/lib/pear-desktop/app.asar
  • MPRIS Bus Name: org.mpris.MediaPlayer2.chromium.instance20338
  • playerctl is not installed, verified via direct D-Bus calls

Suggested Fix

When building the media change toast, prefer xesam:title and xesam:artist from MPRIS metadata. Only fall back to org.mpris.MediaPlayer2.Identity (or DesktopEntry) if the metadata is missing or empty. Many Chromium/Electron apps (like this fork of YouTube Music) have less user-friendly Identity strings, so relying on them is causing this regression.

Environment

  • Distro: Omarchy (Arch Linux based)
  • Omarchy version: 4.0.6-1
  • Player: Pear Desktop (th-ch/youtube-music fork)
  • Compositor: Hyprland

Activity

1
Warrington-Seale1d ago

Screenshot attached: /home/juan/Pictures/screenshot-2026-10-20_22-03-50.png https://imgur.com/a/jbXcONu