commit 5f6d2b55f30930b3f220f6e7dfe68baf23ebdce7
Author: Robert Greener <robert@agreener.uk>
Date:   Mon Aug 28 10:48:25 2017 +0100

    gnomemusic/player.py: Set pulseaudio icon name for gnome-control-center
    
    Currently the icon that gets used in the gnome-control-center is the applications-media icon from Gtk, obviously this should display the icon for gnome-music.
    
    It is not displayed as gnome-control-center gets the icon name from the pulseaudio properties.
    
    To fix this, an environment variable PULSE_PROP_window.icon_name has been set which will cause the correct icon to be displayed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709073

diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index eabb283..01fef8e 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -39,6 +39,7 @@ gi.require_version('Gst', '1.0')
 gi.require_version('GstAudio', '1.0')
 gi.require_version('GstPbutils', '1.0')
 from gi.repository import Gtk, Gdk, GLib, Gio, GObject, Gst, GstAudio, GstPbutils
+from os import environ
 from gettext import gettext as _, ngettext
 from random import randint
 from collections import deque
@@ -182,6 +183,7 @@ class Player(GObject.GObject):
         self._rgvolume = Gst.ElementFactory.make("rgvolume", "rgvolume")
         self._rglimiter = Gst.ElementFactory.make("rglimiter", "rglimiter")
         self._rg_audiosink = Gst.ElementFactory.make("autoaudiosink", "autoaudiosink")
+        environ["PULSE_PROP_window.icon_name"] = "gnome-music"
         if not self._rgfilter or not self._rg_audioconvert1 or not self._rg_audioconvert2 \
            or not self._rgvolume or not self._rglimiter or not self._rg_audiosink:
             logger.debug("Replay Gain is not available")
