[PATCH app/setxkbmap] Add $HOME/.xkb to default search path

Gioele Barabucci gioele at svario.it
Thu Nov 17 13:53:42 UTC 2016


Am 17.11.2016 um 03:39 schrieb Mihail Konev:
> Signed-off-by: Mihail Konev <k.mvc at ya.ru>
> BugLink: https://github.com/xkbcommon/libxkbcommon/issues/40
> ---
>  setxkbmap.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/setxkbmap.c b/setxkbmap.c
> index cf0f02d6e704..f5b9f637a136 100644
> --- a/setxkbmap.c
> +++ b/setxkbmap.c
> @@ -50,6 +50,9 @@
>  #ifndef DFLT_XKB_CONFIG_ROOT
>  #define DFLT_XKB_CONFIG_ROOT "/usr/share/X11/xkb"
>  #endif
> +#ifndef DFLT_XKB_CONFIG_HOME
> +#define DFLT_XKB_CONFIG_HOME ".xkb"
> +#endif

Hello,

Would it be possible to use XDG Base directory [1] instead of creating 
yet another dotdir in $HOME?

Using `~/.config/xkb` (with the `~/.config` prefix configurable via 
XDG_CONFIG_HOME) would be more consistent with the rest of new Linux 
applications.

[1] 
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

--
Gioele Barabucci <gioele at svario.it>




More information about the xorg-devel mailing list