/**
* 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);
}
}
From indicator-sound source code:
media-player- mpris.vala:
/**
this. appinfo. launch (null, null);
this. state = "Launching";
this. root.Raise ();
* 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) {
}
else if (this.root != null && this.root.CanRaise) {
}
}
catch (Error e) {
warning ("unable to activate %s: %s", appinfo.get_name (), e.message);
}
}
media-player- user.vala:
public override void activate () {
/* TODO: */
}