Comment 1 for bug 1675448

Revision history for this message
Michał Sawicz (saviq) wrote : Re: Unity 8 doesnt allow multiple mir connections from an application instance

Not a duplicate after all:

<Saviq> bschaefer, about bug #1675448 you say that SDL likes to probe the display server, how would that affect launching an app? it drops the probing connection and reconnects from scratch after deciding it's fine?
<bschaefer> yeah, just need to politely mention we dont want to support that and dont want to support anything mir related long term until we have 1.0
<bschaefer> Saviq, soo with SDL2 (recently upstreamed and not released) and SDL1.2
<bschaefer> it probes if mir is around by simply attempting to connect to the mir server
 checks if its valid, releases the connection
 then runs with the video driver which will re-connect to the display server
 in the same process
<bschaefer> Saviq, theres not a good way to cache this connection as well (only way would be a global variable MirConnection* which i would like to avoid 100%)
<Saviq> dandrader, you might want to have that in mind ↑ when looking at multi-instance apps, bug #1675448 might not really be a duplicate after all
<dandrader> Saviq, ack
<Saviq> I'm actually not sure how to solve that wrt. splash screens right now
 'cause the first connection would be hooked up to the Application object that's "waiting" for a connection, then that connection gets dropped and we get a new one
 so how do we differentiate that from a new instance altogether? I suppose through UAL instances maybe?
<bschaefer> hmm
<Saviq> so we maintain a 1:1 mapping between UAL's instance and our Application, and we collect multiple connections for the same instance under the same Application object
<dandrader> Saviq, agreed it looks like a separate issue
<dandrader> (that "duplicate "bug)
<bschaefer> yeah i wasnt sure if it was
 but if a connection releases it before a new one comes it *its closed* right?
<bschaefer> and any connections after the release would be void
<Saviq> bschaefer, I suppose we can rely on UAL telling us when an application instance is really gone
<bschaefer> Saviq, that should be a way to do it (though not sure if its *easy* to do)
<bschaefer> does U8 only know about an application on the first mir_connection?