From d7b39f6ffbe9b46181c5597b0d0e7373eb2e9070 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 10 Jul 2020 08:50:02 +1000 Subject: Add /etc/xkb as extra lookup path for system data files This completes the usual triplet of configuration locations available for most processes: - vendor-provided data files in /usr/share/X11/xkb - system-specific data files in /etc/xkb - user-specific data files in $XDG_CONFIG_HOME/xkb The default lookup order user, system, vendor, just like everything else that uses these conventions. For include directives in rules files, the '%E' resolves to that path. Signed-off-by: Peter Hutterer --- doc/rules-format.md | 3 +++ doc/user-configuration.md | 2 ++ 2 files changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/rules-format.md b/doc/rules-format.md index 96acbbf..f9fe0d9 100644 --- a/doc/rules-format.md +++ b/doc/rules-format.md @@ -73,6 +73,9 @@ Notes: %H: The value of the HOME environment variable. + %E: + The extra lookup path for system-wide XKB data (usually /etc/xkb/rules). + %S: The system-installed rules directory (usually /usr/share/X11/xkb/rules). ``` diff --git a/doc/user-configuration.md b/doc/user-configuration.md index 17e7179..b8c4d30 100644 --- a/doc/user-configuration.md +++ b/doc/user-configuration.md @@ -11,6 +11,8 @@ libxkbcommon searches the following paths for XKB configuration files: - `$XDG_CONFIG_HOME/xkb/`, or `$HOME/.config/xkb/` if the `$XDG_CONFIG_HOME` environment variable is not defined - `$HOME/.xkb/` +- `$XKB_CONFIG_EXTRA_PATH` if set, otherswise `/xkb` (on most + distributions this is `/etc/xkb`) - `$XKB_CONFIG_ROOT` if set, otherwise `/X11/xkb/` (path defined by the `xkeyboard-config` package, on most distributions this is `/usr/share/X11/xkb`) -- cgit v1.2.3