aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src/applicationmodel.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-09-21Rework to use launcher wrapper from libqtappfwneedlefishScott Murray1-21/+6
Switch to using the new app launcher API wrapper from libqtappfw in order to migrate to the new gRPC based API implementation. As well, the copyright headers in the source files have been tweaked to remove the Apache license boilerplate in favour of a SPDX license tag. Bug-AGL: SPEC-4559 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I62cd0a51e9c97b1db3d86ca67b7c92d086d2f1c9 (cherry picked from commit 5e828161fc1571323e2812a344f6714ae9331b2c)
2021-12-20launcher: rely on applaunchd for application startupmarlin_12.91.0marlin/12.91.012.91.0Arnaud Ferraris1-9/+10
In the new App FW setup, `launcher` should only instruct `applaunchd` to execute an application. In order to do so, it must first build a list of available applications by looking for and parsing `.desktop` files in relevant folders. Then, when an application must be started, it has to call the corresponding `applaunchd` method through D-Bus, which will then handle the application startup using either command line execution or D-Bus activation. Bug-AGL: SPEC-4159 SPEC-4160 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: Ie2f55a5acb64ed90aa6aafb687c927d87f6cc0aa
2020-01-27launcher: remove unused DBus code artifactsicefish_8.99.5icefish/8.99.58.99.5Matt Ranostay1-7/+5
All accesses to control launching applications are now done via agl-service-homescreen/libhomescreen, and thus the unused DBus interface can be removed. Bug-AGL: SPEC-3137 Change-Id: I27f5afd89bd15eb50486e2546a730e40f016b05e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-04-01Start app and get runnables list by homescreenwang_zhiqiang1-15/+68
1.only call showWindow when start application. 2.get runnalbes list from homescreen-service. 3.subscribe and deal with Event_AppListChanged. 4.move LICENSE file to top-level directory. 5.sort application by application name with ascending order. Bug-AGL: SPEC-2188 Change-Id: Ic960e25d8de8d063296298a1897865dc3026dee6 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2019-03-27Revert "Start app and get runnables list by homescreen"Jan-Simon Moeller1-62/+15
https://gerrit.automotivelinux.org/gerrit/#/c/20559/ and https://gerrit.automotivelinux.org/gerrit/#/c/20223/ caused the launcher not to display any icons. Reverting until resolved. This reverts commit 607fdc0374e76a272455cc010f35693ba8b6894b. Change-Id: I3040f0a44b8cfc449e57c27e32ed631fc98b34fd
2019-03-27Revert "Sort application display order"Jan-Simon Moeller1-7/+1
https://gerrit.automotivelinux.org/gerrit/#/c/20559/ and https://gerrit.automotivelinux.org/gerrit/#/c/20223/ caused the launcher not to display any icons. Reverting until resolved. This reverts commit 259a07d696b455f22b13edcae107de67079036f3. Change-Id: Icdb2accf003cdf9d76a5a69bce3fef0b218093ea
2019-03-25Sort application display orderwang_zhiqiang1-1/+7
Sort application by application name with ascending order. Change-Id: I778cc6a5a69496023abe4ecbab54bd686ce95594 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2019-03-22Start app and get runnables list by homescreenwang_zhiqiang1-15/+62
1.only call showWindow when start application. 2.get runnalbes list from homescreen-service. 3.subscribe and deal with Event_AppListChanged. 4.move LICENSE file to top-level directory. Bug-AGL: SPEC-2188 Change-Id: If0ce87a2f770b1a06ba72fdb087a24719d92d124 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2018-11-06use appid instead of appname in "tap_shortcut"halibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy_6.99.1guppy/6.99.4guppy/6.99.3guppy/6.99.2guppy/6.99.17.90.06.99.46.99.36.99.26.99.1wang_zhiqiang1-0/+6
Now In homescreen-service used application_id to identify different application, so use appid instead of appname in "tap_shortcut" parameter. Bug-AGL: SPEC-1764 Change-Id: Ia7004dbbc9851e95f959e551e0427c9dc308eb9b Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
2018-08-24Revert "Use appid between homescreen-service and apps"guppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4Tadao Tanikawa1-6/+0
This reverts commit 5fbb59e80e4f870a1badd694d2efcd8cd941cdfb. Bug-AGL: SPEC-1685 Change-Id: Idd71625415b79cff6ab76b6179236d946a5aab41 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2018-08-06Use appid between homescreen-service and appsflounder_5.99.3flounder/5.99.35.99.3zheng_wenlong1-0/+6
Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Change-Id: I02a87f289c6da0a86012fd304fb1f2d2452ee990 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2018-07-31Change hide icon source with containszheng_wenlong1-2/+4
If homescreen repo use homescreen without "-2017", Launcher need hide icon for homescreen or "-2017". So change the code compare with application id. Change-Id: If1d33ea1718909626b1a04f128ee9b385bc2d447 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
2018-06-27Detach launcher application from HomeScreenzheng_wenlong1-0/+154
Detach launcher application from Homescreen, Use qlibhomescreen instead of homescreenhandle. [Patch sets 3] This application needs qlibhomescreen, add into sdk in 14597. [Patch sets 4] Right now add qlibhomescreen class into src for instead. Delete it after qlibhomescreen is add into sdk. [Patch sets 5] From Jan-Simon advise, waitting for qlibhomescreen sdk. So return to Patch sets 3. Relative commit: https://gerrit.automotivelinux.org/gerrit/#/c/14597/ Task-AGL: SPEC-1518 Change-Id: Ia16aecddd2bf4623038a84254a0c56967ace9b92 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>