← Back to team overview

ubuntu-phone team mailing list archive

Re: Sharing dynamic informations between the user session and the greeter

 

On Fri, Mar 7, 2014 at 6:44 AM, Thomas Voß <thomas.voss@xxxxxxxxxxxxx> wrote:
> On Thu, Mar 6, 2014 at 6:19 PM, Sebastien Bacher <seb128@xxxxxxxxxx> wrote:
>> 2. get lightdm to connect to the user-session bus and send back selected
>> informations to the greeter.
>>
>> That seems like the most flexible/powerful solution, giving access to the
>> user session might be a concern for security though.
>>
>>
>
> How is that different from (1.)? Lightdm becomes the proxy here, and I
> don't think the display manager is the right place to handle static or
> dynamic data.

I also think that LightDM shouldn't be involved in handling the
specific data that is sent between sessions and greeters. While it's
convenient to use LightDM because it's always running the role of the
display manager is to set up the environment for display servers,
sessions and greeters and then let them do the work. If the display
manager is involved in details there is a risk that a bug in a
particular message type could take down the display manager and that
is a Real Bad Thing (TM). Better let some other lower risk daemon
crash and restart.

LightDM has always taken the view that it doesn't really know (or want
to know) what sessions are doing, and this allows us to support a
variety of session / display server cases. In particular, LightDM
actually has no idea that a session is even running a D-Bus and would
have no idea currently how to connect to it.


References