← Back to team overview

ubuntu-phone team mailing list archive

Re: Unity8 & Mir update Feb 27, 2014

 

On 02/28/2014 11:37 AM, Thomas Voß wrote:
> On Fri, Feb 28, 2014 at 9:48 AM, Alberto Mardegan
> <alberto.mardegan@xxxxxxxxxxxxx> wrote:
>>
>> I hope to be proved wrong, but I've the feeling that this can be racy:
>> we need to make sure that the trusted helper manages to start the
>> trusted session before the participating apps have shown their windows,
>> or you won't be able to see the correct transitions.
> 
> Why not? The designs explicitly take into account the case when an app
> is already running.

I'm thinking of the case where the application is *not* running. In a
typical session you have:

  App1 -> TrustedHelper -> App2

Initially, only App1 is running. When it invokes the trusted helper, the
trusted helper will create the trusted session and add itself and App1
into it, and then start the session. So far, so good.
The problem comes when App2 needs to be started: App2 needs to be added
to the trusted session after it's started (if my understanding of the
API is correct, an application is added by its PID), but before it gets
a chance to show its window. How can we achieve this?

Ciao,
  Alberto



Follow ups

References