Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
}
}
+ Timer {
+ id: timer_start_show
+ interval: 500
+ running: false
+ repeat: false
+
+ onTriggered: {
+ console.log("Should be able to see the the surface as the compositor will by default show it")
+ }
+ }
+
MouseArea {
id: loc
anchors.fill: parent
return
}
if (currentId === '') {
- homescreenHandler.tapShortcut(applicationModel.appid(loc.index))
+ //homescreenHandler.tapShortcut(applicationModel.appid(loc.index))
+ var app_id = applicationModel.appid(loc.index)
+ console.log("Trying to launch " + app_id)
+ homescreenHandler.launch(app_id)
+ timer_start_show.running = true
} else {
currentId = ''
}
return runnables;
}
+
+int
+ApplicationHandler::launch(const QString &app_id)
+{
+ if (m_launcher) {
+ return m_launcher->start(app_id);
+ }
+
+ return -1;
+}
//void init(int port, const char* token, QLibWindowmanager *qwm, QString myname);
//Q_INVOKABLE void tapShortcut(QString application_id);
Q_INVOKABLE size_t getRunnables(void);
+ Q_INVOKABLE int launch(const QString &app_id);
//void onRep(struct json_object* reply_contents);
//static void* myThis;
m_current = current;
emit currentChanged(current);
}
-
-