compose: add xdg base directory support
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 16 Jul 2020 10:06:49 +0000 (12:06 +0200)
committerRan Benita <ran@unusedvar.com>
Thu, 23 Jul 2020 06:39:53 +0000 (09:39 +0300)
commit17ad0df14ad3414de3d69e75f448a1f4acb637c3
tree8e305d5003d94dde1f3e6c24d80f38e6fa776e8f
parent2a8343057211686d70c46d6efe2f60a9c0e30403
compose: add xdg base directory support

Before reading ~/.XCompose, try to read $XDG_CONFIG_HOME/XCompose
(falling back to ~/.config/XCompose).

This helps unclutter the home directory of users who want that.
src/compose/paths.c
src/compose/paths.h
src/compose/table.c
xkbcommon/xkbcommon-compose.h