[LightDM] how to exit display manager

Robert Ancell robert.ancell at gmail.com
Mon Apr 7 13:31:29 PDT 2014


Yes, the daemon will exit if it receives a SIGTERM, but the daemon is a
root process and the greeter is run as the "lightdm" user. So the greeter
does not have permissions to send signals to the daemon (i.e. only root
processes can send signals to the daemon).


On 7 April 2014 21:19, Gabriele Bulfon <gabriele.bulfon at sonicle.com> wrote:

> But looking at the lightdm.c code, I see two callbacks waiting for
> signals, handling daemon exit.
> Isn't it possible to send these signals from the greeter to its parent
> (lightdm daemon)?
> Or, how may I patch in a good manner the lightdm-gobject code to provide
> such a function?
>
> ------------------------------
>
>
> *Da:* Robert Ancell <robert.ancell at gmail.com>
> *A:* Gabriele Bulfon <gabriele.bulfon at sonicle.com>
> *Cc:* pjssilva at gmail.com LightDM Mailing List <
> lightdm at lists.freedesktop.org>
> *Data:* 6 aprile 2014 22.37.52 CEST
>
> *Oggetto:* Re: [LightDM] how to exit display manager
>
>
> No, the greeter does not have the permissions to shut down the lightdm
> service. If you need to do this you should use existing methods to shut
> down the service and make the "lightdm" user account able to access this.
>
>
> On 6 April 2014 01:16, Gabriele Bulfon <gabriele.bulfon at sonicle.com>wrote:
>
>> I meant through C code inside the greeter, using lightdm-gobject calls or
>> signals. :)
>>
>>
>>
>> ----------------------------------------------------------------------------------
>>
>> Da: pjssilva at gmail.com
>> A: Gabriele Bulfon <gabriele.bulfon at sonicle.com>
>> Data: 5 aprile 2014 14.08.32 CEST
>> Oggetto: Re: [LightDM] how to exit display manager
>>
>> This one I know... In Ubuntu try
>>
>> stop lightdm
>>
>> (in the console)
>>
>> best,
>>
>> Paulo
>>
>>
>>
>> 2014-04-05 8:52 GMT-03:00 Gabriele Bulfon <gabriele.bulfon at sonicle.com>:
>>
>> > Hi,
>> >
>> > I'm customizing the power menu, adding "Exit Display Manager..." to get
>> back
>> > to text console.
>> > I tried issuing a sigsend SIGQUIT to the parent pid of the greeter, but
>> > doesn't work.
>> > What is a correct way to tell lightdm to quit?
>> >
>> > BTW I could patch lightdm to support Solaris RBAC and allow for
>> shutdown and
>> > reboot through HAL
>> > dbus. :)
>> >
>> > Thanks!
>> > Gabriele
>> >
>> >
>> >
>> > _______________________________________________
>> > LightDM mailing list
>> > LightDM at lists.freedesktop.org
>> > http://lists.freedesktop.org/mailman/listinfo/lightdm
>> >
>>
>>
>>
>> --
>> Paulo José da Silva e Silva
>> Professor Associado, Dep. de Matemática Aplicada
>> (Associate Professor, Applied Mathematics Dept.)
>> University of Campinas - Brazil
>>
>> Web: http://www.ime.unicamp.br/~pjssilva
>>
>>
>>
>> _______________________________________________
>> LightDM mailing list
>> LightDM at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/lightdm
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20140408/ed190b56/attachment.html>


More information about the LightDM mailing list