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 #31. 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).
20 lines
459 B
CMake
20 lines
459 B
CMake
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
|
|
|
calamares_add_plugin( keyboard
|
|
TYPE viewmodule
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
SOURCES
|
|
KeyboardViewStep.cpp
|
|
KeyboardPage.cpp
|
|
SetKeyboardLayoutJob.cpp
|
|
keyboardwidget/keyboardglobal.cpp
|
|
keyboardwidget/keyboardpreview.cpp
|
|
UI
|
|
KeyboardPage.ui
|
|
RESOURCES
|
|
keyboard.qrc
|
|
LINK_LIBRARIES
|
|
calamaresui
|
|
SHARED_LIB
|
|
)
|