Diff between 6777744886e86fc7e0b7890334bfc90eb14f13cc and c8cc30465d7322c662f1928dbc681bcdaa97a3ab
Changed Files
| File | Additions | Deletions | Status |
| tools/mpris-player.c | +5 | -1 | modified |
Full Patch
diff --git a/tools/mpris-player.c b/tools/mpris-player.c
index b82b5df..4dbde90 100644
--- a/tools/mpris-player.c
+++ b/tools/mpris-player.c
@@ -1381,7 +1381,11 @@ static const GDBusPropertyTable mpris_properties[] = {
static char *mpris_busname(char *name)
{
- return g_strconcat(MPRIS_BUS_NAME,
+ if (g_ascii_isdigit(name[0]))
+ return g_strconcat(MPRIS_BUS_NAME, "bt_",
+ g_strcanon(name, A_Z a_z _0_9, '_'), NULL);
+ else
+ return g_strconcat(MPRIS_BUS_NAME,
g_strcanon(name, A_Z a_z _0_9, '_'), NULL);
}