Modifying the add_player function in /src/sound-menu.vala:
var section = new Menu ();
section.append_item (player_item);
- section.append_item (playback_item);
+ if (player.has_poxy())
+ section.append_item (playback_item);
From what I see this would require a restart of indicator-sound if the MPRIS gets re-enabled, but no sound items would be displayed if the proxy is absent.
I know a real patch would help more, but I don't know how to create one yet.
Adding a function to the MediaPlayer class in /src/media- player. vala:
+ public bool has_proxy () {
+ return (this.proxy != null)
+ }
Modifying the add_player function in /src/sound- menu.vala:
var section = new Menu (); append_ item (player_item);
section.
- section.append_item (playback_item);
+ if (player.has_poxy())
+ section.append_item (playback_item);
From what I see this would require a restart of indicator-sound if the MPRIS gets re-enabled, but no sound items would be displayed if the proxy is absent.