[LightDM] Bootloop after tried to run a custom script

Emanuele Petriglia inbox at emanuelepetriglia.me
Mon Apr 30 08:20:56 UTC 2018


Hi Robert,

First, thanks for the reply. My custom script simply choices a random
wallpaper from a directory and creates a symlink to a well-known path.
This path is used as wallpaper for GTK+ greeter, but I use it also for
XFCE desktop. So with this way I've random wallpapers that are the same
on both desktops.

In this case the first option (configure the behaviour of LightDM) seems
the best choice, because if my script fails there are no problems. The
user knows the behaviour of his custom script if it will fail or not, so
he should establish what LightDM will do.

--
Emanuele Petriglia

On 30/04/18 06:52, Robert Ancell wrote:
> Hi Emmanuele,
> 
> 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.
> 
> There's two ways out of this:
> - 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.
> - 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.
> 
> On Mon, 2 Apr 2018 at 06:20 Emanuele Petriglia
> <inbox at emanuelepetriglia.me <mailto:inbox at emanuelepetriglia.me>> wrote:
> 
>     Hi,
> 
>     recently I had a seriously problem with LightDM. I wrote a custom Bash
>     script that do something, and I wanted to run this script before the
>     greeter (I use GTK+ greeter) is launched. So I wrote this on my
>     lightdm.conf:
> 
>             greeter-setup-script=custom script
> 
>     I didn't check if lightdm could reach the script, because I forgot to
>     move it on /usr/local/bin. So I restarted the computer, and LightDM
>     started to loop infinitely.
> because others because others 
>     I resolved using Debian recovery mode. I inserted the path after the
>     script name:
> 
>             greeter-setup-script=/usr/local/bin/background-selector
> 
>     and it worked perfectly.
> 
>     Why a simple script blocked the booting process? Doesn't LightDM check
>     if the script or command can be executed? And if it can't, why it
>     doesn't skip it?
> 
>     I'm using Debian Stable, lightdm 1.18.3.
> 
>     -- 
>     Emanuele Petriglia
> 
>     _______________________________________________
>     LightDM mailing list
>     LightDM at lists.freedesktop.org <mailto:LightDM at lists.freedesktop.org>
>     https://lists.freedesktop.org/mailman/listinfo/lightdm
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/lightdm/attachments/20180430/a2082f20/attachment.sig>


More information about the LightDM mailing list