]> git.0d.be Git - empathy.git/commitdiff
Set empathy's media role to phone for so pulse can do policy on it
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 8 Mar 2009 20:18:15 +0000 (20:18 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sun, 8 Mar 2009 20:18:15 +0000 (20:18 +0000)
Empathy's media role should be phone. Apart from voip calls the only sounds we
make are event sounds via libcanberra, which correctly sets the role to event
when playing a sound. For more information see:
  http://pulseaudio.org/wiki/ApplicationProperties

From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>

svn path=/trunk/; revision=2634

src/empathy.c

index 3d19bce5a1659c1b6f40edaf02f7ca2de7a6b8b9..a2115a6cff4cf9568ef5b9fbf2a487f4ec472d95 100644 (file)
@@ -455,6 +455,7 @@ main (int argc, char *argv[])
 
        empathy_gtk_init ();
        g_set_application_name (_(PACKAGE_NAME));
+       g_setenv("PULSE_PROP_media.role", "phone", TRUE);
 
        gst_init (&argc, &argv);