Allow setting preferred media players through a settings key instead of hardcoding them.
Originally this was done by hardcoding "rhythmbox.desktop" in PlayerController.vala. Now it's possible to set the list of preferred players by modifying the "preferred-media-players" key located at com.canonical.indicator.sound.* Modifications to that key are applied at run-time and it's always monitored. Of course this setting key only applies to non-blacklisted players.
Currently, setting a player as "preferred" only makes its controls visible all the time.
Also added BeatBox and Noise to the "interested-media-players" and "preferred-media-players" keys, and removed "rhythmbox" from the latter.
A fix has been committed to lp:~victored/elementaryos/indicator-sound
Commit message:
Allow setting preferred media players through a settings key instead of hardcoding them.
Originally this was done by hardcoding "rhythmbox.desktop" in PlayerControlle r.vala. Now it's possible to set the list of preferred players by modifying the "preferred- media-players" key located at com.canonical. indicator. sound.* Modifications to that key are applied at run-time and it's always monitored. Of course this setting key only applies to non-blacklisted players.
Currently, setting a player as "preferred" only makes its controls visible all the time.
Also added BeatBox and Noise to the "interested- media-players" and "preferred- media-players" keys, and removed "rhythmbox" from the latter.