diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-05-03 12:17:27 -0700 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-05-03 12:17:27 -0700 |
commit | c172666fbbd2bbb021e34bc625973ec4fe49178c (patch) | |
tree | 49719fc139f1825161d77e3398673c2de1a9f85d /src/music-player-bridge.vala | |
parent | 5a64bab16ee6f5eb989c838ca2dce791c54501f3 (diff) | |
download | ayatana-indicator-sound-c172666fbbd2bbb021e34bc625973ec4fe49178c.tar.gz ayatana-indicator-sound-c172666fbbd2bbb021e34bc625973ec4fe49178c.tar.bz2 ayatana-indicator-sound-c172666fbbd2bbb021e34bc625973ec4fe49178c.zip |
make sure to handle amaroks desktop file name
Diffstat (limited to 'src/music-player-bridge.vala')
-rw-r--r-- | src/music-player-bridge.vala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/music-player-bridge.vala b/src/music-player-bridge.vala index 18f1c40..bd69668 100644 --- a/src/music-player-bridge.vala +++ b/src/music-player-bridge.vala @@ -163,7 +163,6 @@ public class MusicPlayerBridge : GLib.Object } var mpris_key = determine_key ( desktop ); - // Are we sure clients will appear like this with the new registration method in place. if ( this.registered_clients.has_key (mpris_key) == false ){ debug("New client has registered that we have not seen before: %s", dbus_name ); PlayerController ctrl = new PlayerController ( this.root_menu, @@ -189,14 +188,14 @@ public class MusicPlayerBridge : GLib.Object public void client_has_vanished ( string mpris_root_interface ) { - debug("MusicPlayerBridge -> client with dbus interface %s has vanished", + debug("\n MusicPlayerBridge -> client with dbus interface %s has vanished", mpris_root_interface ); if (root_menu != null){ - debug("attempt to remove %s", mpris_root_interface); + debug("\n attempt to remove %s", mpris_root_interface); var mpris_key = determine_key ( mpris_root_interface ); if ( mpris_key != null && this.registered_clients.has_key(mpris_key)){ registered_clients[mpris_key].hibernate(); - debug("Successively offlined client %s", mpris_key); + debug("\n Successively offlined client %s", mpris_key); } } } @@ -286,8 +285,8 @@ public class MusicPlayerBridge : GLib.Object } var temp = result.split("-"); if (temp != null && temp.length > 1){ - result = temp[0]; - } + result = temp[1]; + } return result; } |