We're missing application start-up from within homescreen. The top
panel surface contains a list of applications which can be started
directly (without the launcher).
Bug-AGL: SPEC-4203
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Icd008c8bdbf3f107972b5b279f1439cab5aaebee
#endif
- if (mp_launcher) {
- mp_launcher->setCurrent(application_id);
+ QDBusPendingReply<> reply = applaunch_iface->start(application_id);
+ reply.waitForFinished();
+ if (reply.isError()) {
+ HMI_ERROR("HomeScreen","Unable to start application '%s': %s",
+ application_id.toStdString().c_str(),
+ reply.error().message().toStdString().c_str());
+ } else {
+ if (mp_launcher) {
+ mp_launcher->setCurrent(application_id);
+ }
+ appStarted(application_id);
}
- appStarted(application_id);
}
#if 0