Commit Graph

7 Commits (5bf4bb878707a736f76c38716de78412c9d995a5)

Author SHA1 Message Date
Teo Mrnjavac 5bf4bb8787 Make writeEtcDefaultKeyboard an option in keyboard.conf.
Teo Mrnjavac 37384279e5 Add support for writing keymap data to /etc/default/keyboard.
Teo Mrnjavac 654bc9f471 Add debug output to SetKeyboardLayoutJob.
CAL-206 #comment I've just pushed some debug output to master, could you please test again and post a new log?
Kevin Kofler 3e9de2a05a keyboard: Allow absolute paths for the xOrgConfFileName setting.
This should ensure it works on all distributions.
Kevin Kofler 86d51b4a9c keyboard: Pass settings directly, not through GlobalStorage.
Pass the settings from keyboard.conf directly to the
SetKeyboardLayoutJob rather than through GlobalStorage.
Kevin Kofler bfdcf0dbc0 keyboard: Coding style fixes.
Kevin Kofler 4f9f7d7858 keyboard: Write the keyboard model and layout settings to the root mount point.
This is implemented as a new SetKeyboardLayout job that does the work.

Portions of the code are adapted from systemd-localed's source code,
which is under a compatible license (LGPLv2.1+, can be converted to our
GPLv3+ license). I ported it from C to to C++/Qt and made some minor
tweaks to the mapping logic (from X11 to vconsole layouts) though.

Fixes .

Tested on a Fedora Remix (Kannolo 21) with the default module settings
(finds the converted X11 keymaps for the virtual console) and with
convertedKeymapPath: "" (does the legacy keymap conversion as expected).