mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 05:58:24 +02:00
main: show the profile name on the app name
Useful in multi-instance configurations
This commit is contained in:
parent
895c1c7286
commit
219711129e
1 changed files with 7 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue