From 0a2dbbeb9324a265053289e66ee578ff5fbfe42f Mon Sep 17 00:00:00 2001 From: Alejandro Rosales Date: Tue, 8 Sep 2026 11:02:39 -0600 Subject: [PATCH] Detect Ubuntu GDM configuration path --- scripts/Install-SguLinuxRustDeskClient.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Install-SguLinuxRustDeskClient.sh b/scripts/Install-SguLinuxRustDeskClient.sh index 31de969..09111b4 100644 --- a/scripts/Install-SguLinuxRustDeskClient.sh +++ b/scripts/Install-SguLinuxRustDeskClient.sh @@ -230,7 +230,11 @@ configure_x11_login_screen() { case "$display_manager" in 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' else configuration_path='/etc/gdm/custom.conf'