<div dir="ltr"><div><div><div><div>Hi Emmanuele,<br></div><div><br></div>It's a difficult choice, because LightDM can't determine how important the script is. The current logic is, if the script fails to run, then the greeter is not considered to be started and so nothing can be displayed. To display the greeter might cause the wrong thing to happen, so we err on the side of caution.<br><br></div>There's two ways out of this:<br></div>- We could add an option, to configure the behaviour of lightdm in regard to scripts. I'm wary of this, because it would be very obscure.<br></div>- Is the functionality in your script suitable for inclusion into the greeter code? The script support is provided because existing display managers had them, but ideally they shouldn't be required.<br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 2 Apr 2018 at 06:20 Emanuele Petriglia <<a href="mailto:inbox@emanuelepetriglia.me">inbox@emanuelepetriglia.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
recently I had a seriously problem with LightDM. I wrote a custom Bash<br>
script that do something, and I wanted to run this script before the<br>
greeter (I use GTK+ greeter) is launched. So I wrote this on my<br>
lightdm.conf:<br>
<br>
greeter-setup-script=custom script<br>
<br>
I didn't check if lightdm could reach the script, because I forgot to<br>
move it on /usr/local/bin. So I restarted the computer, and LightDM<br>
started to loop infinitely.<br>
<br>
I resolved using Debian recovery mode. I inserted the path after the<br>
script name:<br>
<br>
greeter-setup-script=/usr/local/bin/background-selector<br>
<br>
and it worked perfectly.<br>
<br>
Why a simple script blocked the booting process? Doesn't LightDM check<br>
if the script or command can be executed? And if it can't, why it<br>
doesn't skip it?<br>
<br>
I'm using Debian Stable, lightdm 1.18.3.<br>
<br>
-- <br>
Emanuele Petriglia<br>
<br>
_______________________________________________<br>
LightDM mailing list<br>
<a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/lightdm" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
</blockquote></div>