From c5cd1955066df3819ddbfcfb6fbc96b2f41ae8ac Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Fri, 26 Jan 2024 16:44:29 +0100 Subject: [PATCH] mpris: Use player Identity if the player app isn't known For players that don't match to an app, we can still do better than the generic fallback if the client provides a valid `Identity` value. Part-of: --- data/dbus-interfaces/org.mpris.MediaPlayer2.xml | 1 + js/ui/mpris.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/dbus-interfaces/org.mpris.MediaPlayer2.xml b/data/dbus-interfaces/org.mpris.MediaPlayer2.xml index 5febaf90b..6c248bfc1 100644 --- a/data/dbus-interfaces/org.mpris.MediaPlayer2.xml +++ b/data/dbus-interfaces/org.mpris.MediaPlayer2.xml @@ -3,5 +3,6 @@ + diff --git a/js/ui/mpris.js b/js/ui/mpris.js index 78b61f4cf..80b6af8fa 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -227,7 +227,7 @@ export class MprisPlayer extends Signals.EventEmitter { } this.source.set({ - title: this._app?.get_name() ?? null, + title: this._app?.get_name() ?? this._mprisProxy.Identity, icon: this._app?.get_icon() ?? null, });