legionus / kbd

Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git
https://kbd-project.org
Other
84 stars 41 forks source link

LOADKEYS(1) | non-existing path for `defkeymap.map` #113

Closed Ricky-Tigg closed 1 day ago

Ricky-Tigg commented 5 months ago

kbd package installed from Fedora repository

Hello.

reference in LOADKEYS(1):

If the -d (or --default ) option is given, loadkeys loads a default keymap, probably the file defkeymap.map either in /usr/lib/kbd/keymaps or in /usr/src/linux/drivers/char.

legionus commented 1 week ago

There is indeed a mistake. The path where defkeymap.map is alternatively searched is slightly different. The second path is /usr/src/linux/drivers/tty/vt . This is an optional path to the linux kernel source code.

Ricky-Tigg commented 6 days ago

But then, if this is so, on my system none of these paths will lead to defkeymap.map.gz. Could this have been intentional?

legionus commented 6 days ago

@Ricky-Tigg The loadkeys utility uses multiple directories to search for keymaps. At the beginning defkeymap is searched among other keymaps. If defkeymap is not found, loadkeys will try searching the kernel source tree if the directory exists.

https://github.com/legionus/kbd/blob/master/data/keymaps/i386/qwerty/defkeymap.map

Ricky-Tigg commented 6 days ago

Can I infer that when defkeymap.map.gz exists, it will inexorably be found by this tool?

legionus commented 6 days ago

I think so.

legionus commented 1 day ago

There is indeed a mistake. The path where defkeymap.map is alternatively searched is slightly different. The second path is /usr/src/linux/drivers/tty/vt . This is an optional path to the linux kernel source code.

Fixed in master.