From 6777744886e86fc7e0b7890334bfc90eb14f13cc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 31 Jan 2013 09:33:52 -0600 Subject: [PATCH] tools: Use device Alias instead of Name in mpris-player User may have set a different Name using Alias, Alias should always be set. --- tools/mpris-player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mpris-player.c b/tools/mpris-player.c index aafa14245..b82b5df87 100644 --- a/tools/mpris-player.c +++ b/tools/mpris-player.c @@ -1422,7 +1422,7 @@ static void register_player(GDBusProxy *proxy) if (device == NULL) return; - if (!g_dbus_proxy_get_property(device, "Name", &iter)) + if (!g_dbus_proxy_get_property(device, "Alias", &iter)) return; dbus_message_iter_get_basic(&iter, &name); -- 2.47.3