OSDN Git Service

tools: Use device Alias instead of Name in mpris-player
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 31 Jan 2013 15:33:52 +0000 (09:33 -0600)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 31 Jan 2013 20:40:57 +0000 (14:40 -0600)
User may have set a different Name using Alias, Alias should always
be set.

tools/mpris-player.c

index aafa142..b82b5df 100644 (file)
@@ -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);