Le mardi 15 mars 2011 à 18:49 +0100, Patrick Matthäi a écrit : > Hi, > > you forgot to attach the updated patch.
Sorry, for reference the upstream bug is http://sourceforge.net/support/tracker.php?aid=3196158 The patch has been submitted for review on: http://sourceforge.net/tracker/?func=detail&aid=3199734&group_id=147372&atid=768007 -- Sebastien Bacher
>From 18e6fe86e1561fc2dca6ca4a583255b76328e715 Mon Sep 17 00:00:00 2001 From: ronoc <[email protected]> Date: Fri, 4 Mar 2011 15:57:13 +0000 Subject: [PATCH] Set the correct pulse audio properties, for the icon, app name and the media role on the pulse connection. This will help other apps identify mumble at runtime and be able to determine mumble's purpose. --- src/mumble/PulseAudio.cpp | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/mumble/PulseAudio.cpp b/src/mumble/PulseAudio.cpp index f5fec60..cbd9ec6 100644 --- a/src/mumble/PulseAudio.cpp +++ b/src/mumble/PulseAudio.cpp @@ -99,7 +99,16 @@ PulseAudioSystem::PulseAudioSystem() { pam = pa_threaded_mainloop_new(); pa_mainloop_api *api = pa_threaded_mainloop_get_api(pam); - pacContext = pa_context_new(api, "Mumble"); + pa_proplist *proplist; + + proplist = pa_proplist_new (); + pa_proplist_sets (proplist, PA_PROP_APPLICATION_NAME, "Mumble"); + pa_proplist_sets (proplist, PA_PROP_APPLICATION_ID, "net.sourceforge.mumble.mumble"); + pa_proplist_sets (proplist, PA_PROP_APPLICATION_ICON_NAME, "mumble"); + pa_proplist_sets (proplist, PA_PROP_MEDIA_ROLE, "phone"); + + pacContext = pa_context_new_with_proplist (api, NULL, proplist); + pa_proplist_free (proplist); pa_context_set_subscribe_callback(pacContext, subscribe_callback, this); -- 1.7.4.1

