diff options
author | Humberto Alfonso Díaz <humberto.alfonso@asvito.es> | 2019-10-14 22:53:54 +0200 |
---|---|---|
committer | Lorenzo Tilve <ltilve@igalia.com> | 2020-02-04 19:12:47 +0100 |
commit | 28c5748eaa68759c9f88e81b120c2e514a8fe1a7 (patch) | |
tree | 135d3955575731b16df874969475a360c1176ae4 /src | |
parent | 8550205a77b07234c356ea9d0fa3c486fb0e042a (diff) |
FUNCT Launch configured app on startup
Diffstat (limited to 'src')
-rw-r--r-- | src/config.json | 9 | ||||
-rw-r--r-- | src/js/apps.js | 6 |
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); + }); + } } }); |