#994031 configuration directories read order causes local config to be overridden

Package:
lightdm-gtk-greeter
Source:
lightdm-gtk-greeter
Description:
simple display manager (GTK+ greeter)
Submitter:
Christian Kreidl
Date:
2026-06-28 09:01:00 UTC
Severity:
normal
Tags:
#994031#5
Date:
2021-09-10 08:04:21 UTC
From:
To:
Dear Maintainer,

lightdm and lightdm-gtk-greeter read configuration files from .d/ directories in:
  /usr/share/lightdm/
  /usr/local/share/lightdm/
  /etc/xdg/lightdm/

and from file from /etc/lightdm/ .

But the order in which these directories are parsed differs between lightdm and lightdm-gtk-greeter.

lightdm-gtk-greeter reads files from /usr/local/share/lightdm/ first, thus local configuration is
overridden by config in /usr/share/lightdm/

#994031#10
Date:
2026-06-28 04:15:41 UTC
From:
To:
*Dear Maintainer,

I'm writing to follow up on this bug report from 2021. I can confirm
this issue still exists in the latest version of lightdm-gtk-greeter
(2.0.9-1) on Debian 13 (Trixie).

I've tested this with `sudo lightdm-gtk-greeter --test-mode` and the
configuration order still shows:
1. /usr/local/share/lightdm/...
2. /usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_debian.conf
3. /etc/xdg/lightdm/...

This causes user configurations in /etc/lightdm/lightdm-gtk-greeter.conf
to be overridden by the system default in /usr/share/...

Is there any plan to fix this in an upcoming release? I'm happy to
provide any additional information or testing if needed.

Thank you for your time and effort maintaining this package.

Best regards,
China,Lu Jiafan*

#994031#15
Date:
2026-06-28 08:51:00 UTC
From:
To:
control: tag -1 moreinfo

Hey, sorry for the long delay in replying to this bug, but I'm a bit unsure of
the issue.

I don't think a Debian package should actually read stuff from /usr/local
(since it's installed with prefix beeing /usr), but in any case an admin
shouldn't expect to.

If the local admin wants to tune configuration, they should do it in /etc.

Looking at the code, the directories (and the order) comes from
https://github.com/Xubuntu/lightdm-gtk-greeter/blob/master/src/greeterconfiguration.c#L103
and uses g_get_system_config_dirs() (from GLib).

Also see https://docs.gtk.org/glib/func.get_system_config_dirs.html and
https://specifications.freedesktop.org/basedir/latest/

Regards,