[Spice-devel] [PATCH spice-gtk 2/4] SpiceAudio stream name default to get_application_name()

Marc-André Lureau marcandre.lureau at gmail.com
Mon Nov 7 04:08:04 PST 2011


Hey

On Mon, Nov 7, 2011 at 9:43 AM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> Rereading g_get_application_name, I was wondering if g_get_prg_name()
> wouldn't be more appropriate here? g_get_application_name is the localized
> application name for presentation to the user, g_get_prg_name is an
> unlocalized one

Good point, as I imagined, pulseaudio is using it in various places
and prefer a descriptive name, such as "EsounD client
(old-esound-binary)". It can be used to match streams for various
policies in certain cases (although roles are more useful in most
cases).

So ideally, in the future, I think we would want to have something
like: "MySpiceClient (NameOfVM)". This could be done by spice-gtk
itself in the future without requiring the application to set the name
of the stream. Although we may want to support overriding that name
again in the future with a property (I dropped it in
spice_audio_get())


-- 
Marc-André Lureau


More information about the Spice-devel mailing list