Re: Launching apps from an HTML5 launcher

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 9 Jul 2019 11:40:00 +0200
Jacobo Aragunde Pérez <jaragunde@xxxxxxxxxx> wrote:

> Hi,
> 
> I wrote a very basic HTML5 launcher as a prototype. I'm calling the
> AFM start operation to run an app [1] but it only works the first
> time I click on it.
> 
> Reading the docs [2], I understood that I should call the resume
> operation the second time I click on the same app.
> 
> But I checked the original launcher application, the Qt-based one,
> and I think it's only using the start operation [3], not resume. And
> that also makes sense, because the apps hadn't been paused.
> 
> Anybody knows how it should work?

Hi Jacobo,

Applications are not stopped or resumed by the homescreen. They are run
and the home screen communicates with the windowmanager to ensure that
their windows are displayed on top of others.

At the very first times there was pause/resume facility corresponding
to the SIGSTOP / SIGCONT pair. It has been removed. There was also the
ability to start more that one instance of application. This also was
removed.

I think that your problem is more linked to raising up the windows of
the already activated applications. If your problem is to terminate an
application, the correct verb is 'terminate'.

Best regards
José Bollo

> Thanks in advance!
> 
> [1]
> https://github.com/jaragunde/wam-demo-applications/blob/master/html5-homescreen/homescreen.js#L11
> [2]
> https://docs.automotivelinux.org/docs/en/master/apis_services/reference/af-main/1-afm-daemons.html
> [3]
> https://git.automotivelinux.org/apps/launcher/tree/launcher/src/applicationlauncher.cpp#n48
> 
> Best,

_______________________________________________
automotive-discussions mailing list
automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux