• Show log

    Commit

  • Hash : 5cfd36ab
    Author : Pierre Le Marre
    Date : 2025-02-14T10:35:49

    tools: Do not load names from the environment by default
    
    Our tools are debugging tools and as such we need to have complete
    control to be able to reproduce setups. This is not currently the case,
    as we do not use `XKB_CONTEXT_NO_ENVIRONMENT_NAMES` by default nor can
    we set it.
    
    So it is very easy to forget about the various `XKB_DEFAULT_*`
    environement variables for the default RMLVO values, then to get puzzled
    by unexpected results.
    
    Added to that, these environment variables do not work correctly in
    `xkbcli-compile-xeymap`: calling the tool without RMLVO values will
    use these variables only if the RMLVO values are set explicitly empty or
    if the various *constants* `DEFAULT_XKB_*` are empty. This is unexpected,
    as the environment variables should *always* be used unless:
    
    - `XKB_CONTEXT_NO_ENVIRONMENT_NAMES` is used (not the case here);
    - the variable is empty; in this case the constants `DEFAULT_XKB_*` are
      used.
    
    Fixed by the following *breaking change*: make the tools use
    `XKB_CONTEXT_NO_ENVIRONMENT_NAMES` *by default*, unless the new
    `--enable-environment-names` option is used.
    
    We also make `rmlvo` incompatible with `--enable-environment-names` for
    now in the public tool, as else it requires a private API.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/libxkbcommon.git
    Git SSH git@git.kmx.io:kc3-lang/libxkbcommon.git
    Public access ? public
    Description

    keymap handling library for toolkits and window systems

    Users
    kc3_lang_org www_kmx_io thodg_w thodg_l thodg thodg_m
    Tags