aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-10-14 22:53:54 +0200
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:12:47 +0100
commit28c5748eaa68759c9f88e81b120c2e514a8fe1a7 (patch)
tree135d3955575731b16df874969475a360c1176ae4
parent8550205a77b07234c356ea9d0fa3c486fb0e042a (diff)
FUNCT Launch configured app on startup
-rw-r--r--src/config.json9
-rw-r--r--src/js/apps.js6
2 files changed, 11 insertions, 4 deletions
diff --git a/src/config.json b/src/config.json
index 930da03..9de1cd2 100644
--- a/src/config.json
+++ b/src/config.json
@@ -1,10 +1,6 @@
{
"apps": [
{
- "id": "launcher",
- "icon": "icon icon-home"
- },
- {
"id": "mediaplayer",
"icon": "icon icon-music"
},
@@ -15,8 +11,13 @@
{
"id": "navigation",
"icon": "icon icon-location"
+ },
+ {
+ "id": "webapps-html5-launcher",
+ "icon": "icon icon-home"
}
],
+ "launch": "webapps-html5-launcher",
"network": {
"bluetooth": "icon-bluetooth",
"ethernet": "icon-ethernet",
diff --git a/src/js/apps.js b/src/js/apps.js
index b9829ad..877b646 100644
--- a/src/js/apps.js
+++ b/src/js/apps.js
@@ -26,6 +26,12 @@ function load_application_list() {
name: internalApp.name,
icon: app.icon
});
+
+ if( app.id === configjson.launch ) {
+ afmMain.start(internalApp.id).then(function(result) {
+ console.log("success: " + result);
+ });
+ }
}
});