summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-04-10 21:02:54 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-04-13 17:25:03 +0300
commit28a64b2fb943ec232a9464ee5c092cb1cb0c5e69 (patch)
tree50f600149c234f4d035aa40173f431b39e3d922b
parent831dc2946ce773ce2ed944ea9253350e5dd081bb (diff)
sample/app: Allow to start applications
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
-rw-r--r--sample/app/main.qml8
-rw-r--r--sample/package/config.xml1
2 files changed, 7 insertions, 2 deletions
diff --git a/sample/app/main.qml b/sample/app/main.qml
index 2979d88..2feab6d 100644
--- a/sample/app/main.qml
+++ b/sample/app/main.qml
@@ -342,17 +342,21 @@ ApplicationWindow {
postmsg += "}"
if (!onscreen_role_set) {
- eventHandler.set_window_poup(onsId, 0, 218)
+ console.log("onscreen_role_set is not set")
+ eventHandler.set_window_popup(onsId, 0, 218)
+ console.log("setting for popup for " + onsId)
onscreen_role_set = true
}
// if the application is not already started, start it
- if (pid == -1) {
+ if (pid === -1) {
// if the application is not started, then the first time
// we start we also display it using the default policy engine
pid = eventHandler.start(onsId, postmsg)
+ console.log("calling eventHandler.start for " + onsId + " with pid " + pid)
} else {
// we just need to display it
+ console.log("calling eventHandler.showWindow for " + onsId)
eventHandler.showWindow(onsId, postmsg)
}
}
diff --git a/sample/package/config.xml b/sample/package/config.xml
index daebdeb..0681a6a 100644
--- a/sample/package/config.xml
+++ b/sample/package/config.xml
@@ -13,6 +13,7 @@
<feature name="urn:AGL:widget:required-permission">
<param name="urn:AGL:permission::public:no-htdocs" value="required"/>
<param name="urn:AGL:permission::public:display" value="required" />
+ <param name="urn:AGL:permission:afm:system:widget:start" value="required" />
</feature>
</widget>