aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src/applicationhandler.cpp
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-09 21:46:36 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-04-09 21:46:36 +0300
commit254a9aed37498d97bb85292e848ce28506118ed0 (patch)
tree2e46b3887b0394401ef6f9bb86c6ff22e9705c0a /launcher/src/applicationhandler.cpp
parent331aeb28e15ef263770d79ed5288c31349ec48b6 (diff)
applicationhandler: Allow to start apps from the launcher
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'launcher/src/applicationhandler.cpp')
-rw-r--r--launcher/src/applicationhandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/launcher/src/applicationhandler.cpp b/launcher/src/applicationhandler.cpp
index 38f5220..8f3a8fd 100644
--- a/launcher/src/applicationhandler.cpp
+++ b/launcher/src/applicationhandler.cpp
@@ -28,3 +28,13 @@ ApplicationHandler::getRunnables(void)
return runnables;
}
+
+int
+ApplicationHandler::launch(const QString &app_id)
+{
+ if (m_launcher) {
+ return m_launcher->start(app_id);
+ }
+
+ return -1;
+}