Hi Martin,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 October 2012 23:52, Martin Briza <span dir="ltr"><<a href="mailto:mbriza@redhat.com" target="_blank">mbriza@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Before I start: I wasn't able to find a "verbose" documentation with a in-depth description of how exactly is LightDM structured. If there is such thing, I'd highly appreciate that, as it would make understanding everything much easier.<br>
</blockquote><div><br>Not currently, sorry for that :( <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What I'm facing is this:<br>
We in Fedora have a patch in kde-workspace removing ConsoleKit calls and replacing them with appropriate ones to systemd, so basically, at least in the concerns I'm describing here, the behavior should be the same.<br>
As you might be guessing It is not. :) The behavior is as follows:<br>
1) log in as user1 (this creates a session on VT1)<br>
2) create a new session for user2 (session on VT2)<br>
3) switch to user1 (this calls Activate on the session in both CK and logind)<br>
4) log out as user1 - system gets stuck, no new greeter is created, just a black screen, can't even switch to VT2<br>
Interesting thing in this is the fact that when I select creating a new session (which calls SwitchToGreeter on the LightDM bus) and then select the existing session, everything works fine. I interpret this to myself as LightDM is tracking which user is currently active and properly terminates his session when it ends but can't handle end of session that is not active.<br>
What I don't understand in this is: It works with ConsoleKit so I thought: LightDM is listening to signals emitted by CK and tracks active sessions using them. Well, I couldn't find any signs of LightDM using this but maybe I wasn't looking good enough.<br>
So, please, how exactly does LightDM handle session tracking?<br></blockquote><div><br>LightDM doesn't actually track the active session. In the above step 4 LightDM should have detected that session 1 terminated and started a greeter session (the equivalent of SwitchToGreeter). Can you give the output of /var/log/lightdm after this occurs?<br>
<br>--Robert<br></div><div> <br>ps the lightdm + systemd issue is being tracked in <a href="https://bugs.launchpad.net/lightdm/+bug/930488" target="_blank">https://bugs.launchpad.net/lightdm/+bug/930488</a> but there isn't any major work in it.<br>
<br>
</div></div></div>