- QDBusPendingReply<> reply;
- HMI_DEBUG("HomeScreen","tapShortcut %s", application_id.toStdString().c_str());
-
- if (application_id == LAUNCHER_APP_ID)
- goto activate_app;
-
- 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());
- return;
- }
-
-activate_app:
- if (mp_launcher) {
- mp_launcher->setCurrent(application_id);
- }
- appStarted(application_id);
+ HMI_DEBUG("HomeScreen","tapShortcut %s", app_id.toStdString().c_str());
+
+ if (app_id == LAUNCHER_APP_ID) {
+ activateApp(app_id);
+ return;
+ }
+
+ if (!mp_applauncher_client->startApplication(app_id)) {
+ HMI_ERROR("HomeScreen","Unable to start application '%s'",
+ app_id.toStdString().c_str());
+ return;
+ }