Comment 2 for bug 1541781

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: */
    }