From 219711129ee6303c2eb6fac5d42dbc8d47f89abc Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Thu, 29 Aug 2024 15:19:37 +0300 Subject: [PATCH] main: show the profile name on the app name Useful in multi-instance configurations --- src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 1f207482..07183607 100644 --- a/src/main.c +++ b/src/main.c @@ -217,12 +217,18 @@ main (gint argc, gchar **argv) /* prepare core properties */ properties = wp_properties_new ( - PW_KEY_APP_NAME, "WirePlumber", PW_KEY_APP_VERSION, WIREPLUMBER_VERSION, "wireplumber.daemon", "true", "wireplumber.profile", profile, NULL); + if (g_str_equal (profile, "main")) { + wp_properties_set (properties, PW_KEY_APP_NAME, "WirePlumber"); + } else { + g_autofree gchar *app_name = g_strdup_printf ("WirePlumber (%s)", profile); + wp_properties_set (properties, PW_KEY_APP_NAME, app_name); + } + /* prefer manager socket */ if (pw_check_library_version(0, 3, 84)) wp_properties_set (properties, PW_KEY_REMOTE_NAME,