Detect Ubuntu GDM configuration path

This commit is contained in:
2026-09-08 11:02:39 -06:00
parent f87495f21c
commit 0a2dbbeb93
+5 -1
View File
@@ -230,7 +230,11 @@ configure_x11_login_screen() {
case "$display_manager" in case "$display_manager" in
gdm3.service|gdm.service) gdm3.service|gdm.service)
if [[ $display_manager == gdm3.service ]]; then # Ubuntu exposes the unit as gdm.service on some releases while
# the package still reads /etc/gdm3/custom.conf. Prefer the
# distribution-specific directory instead of inferring it only
# from the unit name.
if [[ -d /etc/gdm3 || -f /etc/gdm3/custom.conf ]]; then
configuration_path='/etc/gdm3/custom.conf' configuration_path='/etc/gdm3/custom.conf'
else else
configuration_path='/etc/gdm/custom.conf' configuration_path='/etc/gdm/custom.conf'