Summary: | kwin_wayland ignores $XDG_CONFIG_HOME/xkb | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Marc Mezzarobba <marc+bugs> |
Component: | input | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | butirsky, nate |
Priority: | NOR | Keywords: | wayland |
Version: | 5.23.4 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=432818 | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/6e87fae7f72416e1108b00c7abdfd438dc713706 | Version Fixed In: | 5.27 |
Sentry Crash Report: |
Description
Marc Mezzarobba
2021-12-18 20:25:55 UTC
libxkbcommon doesn't search for keymaps in .config/xkb because it uses secure_getenv. Since kwin_wayland plays with its nice capability, it has its effective capability set, so secure_getenv() won't work. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3402 Git commit 6e87fae7f72416e1108b00c7abdfd438dc713706 by Vlad Zahorodnii, on behalf of Weng Xuetian. Committed on 07/01/2023 at 11:35. Pushed by vladz into branch 'master'. Support XKB_CONTEXT_NO_SECURE_GETENV flag Since kwin play with CAP_SYS_NICE, secure_getenv will fail for xkbcommon to load user level xkbmap. This allows kwin to load config under ~/.config/xkb M +5 -0 CMakeLists.txt M +1 -0 src/config-kwin.h.cmake M +7 -1 src/xkb.cpp https://invent.kde.org/plasma/kwin/commit/6e87fae7f72416e1108b00c7abdfd438dc713706 |