diff --git a/src/ratbagd-device.c b/src/ratbagd-device.c index 2c6299ee..f049214c 100644 --- a/src/ratbagd-device.c +++ b/src/ratbagd-device.c @@ -64,7 +64,7 @@ static int ratbagd_device_find_profile(sd_bus *bus, int r; r = sd_bus_path_decode_many(path, - "/org/freedesktop/ratbag1/profile/%/%", + "/org/freedesktop/ratbag1/profile/%/p%", NULL, &name); if (r <= 0) diff --git a/src/ratbagd-profile.c b/src/ratbagd-profile.c index 59c688a7..06217a84 100644 --- a/src/ratbagd-profile.c +++ b/src/ratbagd-profile.c @@ -212,7 +212,7 @@ int ratbagd_profile_new(struct ratbagd_profile **out, profile->lib_profile = lib_profile; profile->index = index; - sprintf(index_buffer, "%u", index); + sprintf(index_buffer, "p%u", index); r = sd_bus_path_encode_many(&profile->path, "/org/freedesktop/ratbag1/profile/%/%", ratbagd_device_get_name(device),