summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2021-12-29 15:46:57 +0200
committerMarius Vlad <marius.vlad@collabora.com>2022-01-10 14:16:36 +0200
commitd7e13c3ccce72d55f2ea25ee06e822cda5ff911e (patch)
treee397cd085d578f0dfd0c848e70e10896c81f06e0
parent8fb557550d4d3a7b799134af672f499531cc407e (diff)
homescreenhandler: Start applications from homescreen panel
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
-rw-r--r--homescreen/src/homescreenhandler.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp
index d5e46fa..94e1c9b 100644
--- a/homescreen/src/homescreenhandler.cpp
+++ b/homescreen/src/homescreenhandler.cpp
@@ -133,10 +133,18 @@ void HomescreenHandler::tapShortcut(QString application_id)
#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