[indicators] Players in sound indicator are not launched when clicking in its icon

Bug #1541781 reported by Xavi Garcia
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
High
John McAleely
Ubuntu UX
New
Undecided
Unassigned
indicator-sound (Ubuntu)
Invalid
Undecided
Xavi Garcia
media-hub (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The sound indicator defines an action per each player.

Example for music-app on the phone:
 struct {
         uint32 1
         uint32 2
         array [
            array [
               dict entry(
                  string "action"
                  variant string "indicator.mediaplayer-app.desktop"
               )

I don't see on the phone that the action is invoked when pressing the app icon, so the app cannot be raised or launched from the indicator.

This works fine in unity7 (desktop).

Tags: bgplaylist
Michał Sawicz (saviq)
Changed in unity8 (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Lukáš Tinkl (lukas-kde)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

The applications are usually launched by the indicator itself; sounds like a bug in indicator-sound to me

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

From indicator-sound source code:

media-player-mpris.vala:

    /**
     * Activate the associated media player.
     *
     * Note: this will _not_ call attach(), because it doesn't know on which dbus-name the player will appear.
     * Use attach() to attach this object to a running instance of the player.
     */
    public override void activate () {
        try {
            if (this.proxy == null) {
                this.appinfo.launch (null, null);
                this.state = "Launching";
            }
            else if (this.root != null && this.root.CanRaise) {
                this.root.Raise ();
            }
        }
        catch (Error e) {
            warning ("unable to activate %s: %s", appinfo.get_name (), e.message);
        }
    }

media-player-user.vala:

    public override void activate () {
        /* TODO: */
    }

Changed in unity8 (Ubuntu):
status: Triaged → Invalid
assignee: Lukáš Tinkl (lukas-kde) → nobody
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

The music-app is an MPRIS player (running the code from media-player-mpris.vala:)

That code is running on the desktop (unity7) and it launches the players fine.

That's why I've opened the bug, to also confirm the action associated with the player is executed.
I've asked dednick about it and he wasn't 100% sure if it was a unity8 bug.

Cheers

Changed in unity8 (Ubuntu):
status: Invalid → Confirmed
assignee: nobody → Lukáš Tinkl (lukas-kde)
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

I cannot see any action with dbus-monitor being invoked when pressing the app icon.

I'm moving this as Invalid for the indicator, please feel free to reopen if you conclude there's nothing wrong in unity8.

Changed in indicator-sound (Ubuntu):
status: New → Invalid
assignee: nobody → Xavi Garcia (xavi-garcia-mena)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

After more investigation, I found out the root of this bug: what you see in the indicator is the Media Player (the video app) which cannot play audio. On the other hand, what would be useful to display here, is the Music app (which sadly doesn't have this DBUS-MPRIS functionality.

Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

I see, thanks a lot for finding this out!...
But in that case... I'm wondering if the icon should launch the media-app instead.

Revision history for this message
Michael Zanetti (mzanetti) wrote :

The buttons in the indicator are provided by media-hub.

Media-hub should launch the application that caused it to register those buttons. Probably falling back to the default music application.

affects: media-hub → media-hub (Ubuntu)
Changed in canonical-devices-system-image:
assignee: nobody → Alejandro J. Cura (alecu)
importance: Undecided → High
milestone: none → ww08-2016
status: New → Confirmed
tags: added: bgplaylist
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in media-hub (Ubuntu):
status: New → Confirmed
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
assignee: Alejandro J. Cura (alecu) → John McAleely (john.mcaleely)
Changed in canonical-devices-system-image:
milestone: 11 → 12
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

The metadata is displayed properly now,

Changed in canonical-devices-system-image:
milestone: 12 → 13
no longer affects: unity8 (Ubuntu)
Changed in canonical-devices-system-image:
milestone: 13 → backlog
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.