diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-04-09 21:46:36 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-04-09 21:46:36 +0300 |
commit | 254a9aed37498d97bb85292e848ce28506118ed0 (patch) | |
tree | 2e46b3887b0394401ef6f9bb86c6ff22e9705c0a /launcher/qml/Launcher.qml | |
parent | 331aeb28e15ef263770d79ed5288c31349ec48b6 (diff) |
applicationhandler: Allow to start apps from the launcher
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'launcher/qml/Launcher.qml')
-rw-r--r-- | launcher/qml/Launcher.qml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index 822c964..bd61af1 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -75,6 +75,17 @@ ApplicationWindow { } } + 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 @@ -89,7 +100,11 @@ ApplicationWindow { 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 = '' } |