Bug#808349: libx11-data: ~/.XCompose file location does not follow XDG Base Directory specification
Package: libx11-data
Version: 2:1.6.2-3
Severity: normal
Dear Maintainer,
The man page and source for the dotfile .XCompose says the file should live in
the home directory of a user. The XDG Base Directory Specification suggests
config files should live in `${XDG_CONFIG_HOME}/XCompose` or
`${XDG_CONFIG_HOME}/XCompose/config`.
The source for locating the XCOMPOSEFILE and man page source look approachable:
> modules/im/ximcp/imLcIm.c:
> 530 name = getenv("XCOMPOSEFILE");
> 531 if (name == (char *) NULL) {
> 532 · if (home != (char *) NULL) {
> 533 tmpname = name = Xmalloc(hl + 10 + 1);
> 534 if (name != (char *) NULL) {
> 535 · · int fd;
> 536 · strcpy(name, home);
> 537 · strcpy(name + hl, "/.XCompose");
> 538 · · if ( (fd = _XOpenFile (name, O_RDONLY)) < 0) {
> 539 · · Xfree (name);
> 540 · · name = tmpname = NULL;
> 541 · · } else
> 542 · · close (fd);
> 543 }
> 544 }
> 545 }
I'm very willing to undertake this bug myself.
I'm a new contributor to Debian so I would appreciate any advice you may be willing to provide.
I suspect this is an issue that should be solved upstream of Debian, (if accepted here).
I've done a cursory pass on libx11's upstream bug tracker and didn't find anything relevant.
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (900, 'stable'), (800, 'testing'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-- no debconf information
Reply to: