#994844 emacs-gtk: Emacs ignores ~/.Xdefaults-HOSTNAME

Package:
emacs-gtk
Source:
emacs
Description:
GNU Emacs editor (with GTK+ GUI support)
Submitter:
Łukasz Stelmach
Date:
2023-02-08 15:09:02 UTC
Severity:
normal
Tags:
#994844#5
Date:
2021-09-21 19:43:06 UTC
From:
To:
Dear Maintainer,

After upgrade to Debian 11 Emacs uses default foreground (black) and
background (white) colors instead of those I set in
~/.Xdefaults-myhostname.

strace(8) reveals an attempt to access to a non-existent file

    27026 openat(AT_FDCWD, "/home/steelman/.Xdefaults/myhostname", O_RDONLY) = -1 ENOTDIR[*]

This problem appears (I havn't tested the pathc) to have been
reported[1] and fixed[2] upstream.

The workaround to make Emacs read the file is to set XENVIRONMENT
variable.

    XENVIRONMENT=${HOME}/.Xdefaults-myhostname

[*] I've got ~/.Xdefaults file and a bunch of symlinks
    to it from ~/.Xdefaults-*
[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38495
[2] https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=4b118bdca1d8aa130fb67eadb16e08e87e698aa4

#994844#12
Date:
2023-02-08 15:05:30 UTC
From:
To:
Absorbed upstream fix.