Here is how I think it should be implemented: 1) rhythmbox should use GApplication to implement a few GAction like "play". 2) rhythmbox should install a .service file to be dbus-activatable 3) rhythmbox should install a org.gnome.Rhythmbox.desktop file that tells the actions it implements. See http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s07.html 4) Unity can then start rhythmbox and play by invoking the "play" action on rhythmbox, using g_desktop_app_info_launch_action().
Most of the work should be done upstream IMHO. -- You received this bug notification because you are a member of DX Packages, which is subscribed to indicator-sound in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/752033 Title: Music player should not show its main window if it launches when play button is pressed Status in Sound Menu: Triaged Status in “indicator-sound” package in Ubuntu: Confirmed Bug description: Binary package hint: indicator-sound When my music player is not running, the sound menu still keeps its music controls to keep things tidy. However, when I press the Play button, the player's main window opens! This is improper, because it is inconsistent with pressing Play or Pause from the menu when the player is already running and it is inconsistent with our presentation of the music player as a service. A user pressing this button should not expect the player's main window to appear. To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-sound/+bug/752033/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp