29 Commits (83d2c06f68540cc16bdcf8e1f4425a35a030ffd0)

Author SHA1 Message Date
Adriaan de Groot 83d2c06f68 [keyboard] Apply coding style 4 years ago
Adriaan de Groot 705e6dd8d6 [keyboard] Improve debug-logging for writing etc/default 4 years ago
Adriaan de Groot cbc376a206 [keyboard] Improve debug-logging for writing X11 config 4 years ago
Adriaan de Groot 57da222c72 [keyboard] Improve debug-logging for vconsole-config 4 years ago
Adriaan de Groot 845fb3f6da [keyboard] Refactor writing-various-files
- put the writing of each kind of file in its own block -- this should
  become separate functions -- so that variables become more local
  and debugging can be improved.
- while here, fix the error message for /etc/default/keyboard:
  it would complain and name the vconsole file path if it ever failed.
4 years ago
Adriaan de Groot 3e51d77782 [keyboard] Check for successful file-write 4 years ago
Adriaan de Groot 6aedf4401f [keyboard] Apply coding style 5 years ago
Artem Grinev 6667ea834f [keyboard] Adjusted indents 5 years ago
Artem Grinev 996c82160e [keyboard] fixed typo 5 years ago
Artem Grinev bfc60ad2cf [keyboard] Implemented X11 config writing for additional layout 5 years ago
Adriaan de Groot 2aece7ff1b [keyboard] Warn if QRC is not available 5 years ago
Adriaan de Groot af3261b16f [keyboard] Refactor findLegacyKeymap into something testable 5 years ago
Adriaan de Groot 1cd9b93a22 REUSE: Giant boilerplate cleanup
- point to main Calamares site in the 'part of' headers instead
  of to github (this is the "this file is part of Calamares"
  opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
  this is the 3-paragraph summary of the GPL-3.0-or-later, which has
  a meaning entirely covered by the SPDX tag.
5 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 5 years ago
Adriaan de Groot 192263cf9d [libcalamares][modules] Use compatibility for QString::split()
- Use the compatibility value, which has an enum value suitable
  for the Qt version in use.
5 years ago
Camilo Higuita 835850c02a [keyboardq] apply the style script 5 years ago
Adriaan de Groot ebb3f319cc [modules] Be more consistent in include punctuation
- Use <> for Qt, system, externals
 - Use double-quotes for Calamares headers
5 years ago
Adriaan de Groot 520478847c Make logging more consistent.
- Across all the C++ modules, use Logger::SubEntry for sub/continues
   log lines, instead of somewhat-random indent strings.
6 years ago
Adriaan de Groot e7c62c114f [keyboard] Improve debugging output 7 years ago
Adriaan de Groot 0d56b9b9c5 Merge branch 'master' into i689-kayboard-layout 7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Adriaan de Groot 9b9801d48d Code-style: format the keyboard module 8 years ago
Teo Mrnjavac 5bf4bb8787 Make writeEtcDefaultKeyboard an option in keyboard.conf. 9 years ago
Teo Mrnjavac 37384279e5 Add support for writing keymap data to /etc/default/keyboard. 9 years ago
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?
10 years ago
Kevin Kofler 3e9de2a05a keyboard: Allow absolute paths for the xOrgConfFileName setting.
This should ensure it works on all distributions.
11 years ago
Kevin Kofler 86d51b4a9c keyboard: Pass settings directly, not through GlobalStorage.
Pass the settings from keyboard.conf directly to the
SetKeyboardLayoutJob rather than through GlobalStorage.
11 years ago
Kevin Kofler bfdcf0dbc0 keyboard: Coding style fixes. 11 years ago
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 #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).
11 years ago