#944423 gdm3: file /etc/gdm3/Init/Default tries to read file /etc/X11/Xresources, but this is a directory

Package:
gdm3
Source:
gdm3
Description:
GNOME Display Manager
Submitter:
Tilmann Boess
Date:
2019-11-09 21:33:06 UTC
Severity:
normal
#944423#5
Date:
2019-11-09 20:21:47 UTC
From:
To:
Dear Maintainer,

the file "/etc/gdm3/Init/Default" does not merge in X11 app defaults:
- it checks if "/etc/X11/Xresources" is a plain file.
- but "/etc/X11/Xresources" is a directory (of package "x11-common", which is required by package "gdm3").
- therefore the files in this directory are ignored an not read by "xrdb -merge".

Regards

  Tilmann Boess <tux@velotiger.de>

#944423#10
Date:
2019-11-09 21:24:06 UTC
From:
To:
Dear Maintainer,

here's a patch that should fix the bug:


diff --git a/etc/gdm3/Init/Default b/etc/gdm3/Init/Default

index a8e6993..b50a234 100755
--- a/etc/gdm3/Init/Default
+++ b/etc/gdm3/Init/Default
@@ -25,8 +25,10 @@ gdmwhich () {
  sysresources=/etc/X11/Xresources

  # merge in defaults
-if [ -f "$sysresources" ]; then
-    xrdb -merge "$sysresources"
+if [ -d "$sysresources" ]; then
+  run-parts --list "$sysresources" | while read F; do
+    xrdb -merge "$F"
+  done
  fi

  sysmodmap=/etc/X11/Xmodmap


However, gdm3 seems to ignore the file „/etc/gdm3/Init/Default“ in
contrary to „GDM3.8(1)“:

/When managing a display, gdm3 attempts to execute
/etc/gdm3/Init/display, or /etc/gdm3/Init/Default if that does not exist./

„/etc/gdm3/Init/display“ does not exist, therefore
„/etc/gdm3/Init/Default“ should be run. But this file is not run when I
manually restart the service „gdm3“./
/


Regards