<div dir="ltr">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).</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 7 April 2014 21:19, Gabriele Bulfon <span dir="ltr"><<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana;font-size:12"><div>But looking at the lightdm.c code, I see two callbacks waiting for signals, handling daemon exit.
</div><div>Isn't it possible to send these signals from the greeter to its parent (lightdm daemon)?</div><div>Or, how may I patch in a good manner the lightdm-gobject code to provide such a function?</div><br><hr><br>
<br><font face="Arial, Helvetica, sans-serif"><b>Da:</b> Robert Ancell <<a href="mailto:robert.ancell@gmail.com" target="_blank">robert.ancell@gmail.com</a>><br><b>A:</b> Gabriele Bulfon <<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>> <br>
<b>Cc:</b> <a href="mailto:pjssilva@gmail.com" target="_blank">pjssilva@gmail.com</a> LightDM Mailing List <<a href="mailto:lightdm@lists.freedesktop.org" target="_blank">lightdm@lists.freedesktop.org</a>> <br><b>Data:</b> 6 aprile 2014 22.37.52 CEST<div>
<div class="h5"><br><b>Oggetto:</b> Re: [LightDM] how to exit display manager<br></div></div></font><div><div class="h5"><br><br><blockquote style="BORDER-LEFT:#000080 2px solid;MARGIN-LEFT:5px;PADDING-LEFT:5px"><div dir="ltr">
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.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 6 April 2014 01:16, Gabriele Bulfon <span dir="ltr"><<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana;font-size:12">I meant through C code inside the greeter, using lightdm-gobject calls or signals. :)<br>
<div><br></div><tt><br>----------------------------------------------------------------------------------<br><br>Da: <a href="mailto:pjssilva@gmail.com" target="_blank">pjssilva@gmail.com</a><br>A: Gabriele Bulfon <<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>> <br>
Data: 5 aprile 2014 14.08.32 CEST<br>Oggetto: Re: [LightDM] how to exit display manager<br><br></tt><blockquote style="BORDER-LEFT:#000080 2px solid;MARGIN-LEFT:5px;PADDING-LEFT:5px"><tt>This one I know... In Ubuntu try<br>
<br>stop lightdm<br><br>(in the console)<br><br>best,<br><br>Paulo<br><br><br><br>2014-04-05 8:52 GMT-03:00 Gabriele Bulfon <<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>>:<div>
<div><br>> Hi,<br>><br>> I'm customizing the power menu, adding "Exit Display Manager..." to get back<br>> to text console.<br>> I tried issuing a sigsend SIGQUIT to the parent pid of the greeter, but<br>
> doesn't work.<br>> What is a correct way to tell lightdm to quit?<br>><br>> BTW I could patch lightdm to support Solaris RBAC and allow for shutdown and<br>> reboot through HAL<br>> dbus. :)<br>><br>
> Thanks!<br>> Gabriele<br>><br>><br>><br></div></div>> _______________________________________________<br>> LightDM mailing list<br>> <a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>><br><br><br><span><font color="#888888"><br>-- <br>Paulo José da Silva e Silva<br>
Professor Associado, Dep. de Matemática Aplicada<br>(Associate Professor, Applied Mathematics Dept.)<br>University of Campinas - Brazil<br><br>Web: <a href="http://www.ime.unicamp.br/~pjssilva" target="_blank">http://www.ime.unicamp.br/~pjssilva</a><br>
<br><br></font></span></tt></blockquote></div>
<br>_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div>
</blockquote></div><br></div>