* Add console font selection to Locales menu Add a 4th menu item "Console font" to the Locales configuration, allowing users to select a console font for the target system. The selected font is written to /etc/vconsole.conf. If a terminus font (ter-*) is selected, the terminus-font package is automatically installed on the target system. * Switch list_console_fonts to pathlib and add @lru_cache Address svartkanin's review on #4469. Replace os.listdir + chained removesuffix with Path.glob('*.gz') + split('.')[0], and cache the result via lru_cache - the kbd consolefonts directory is static at runtime so re-scanning on every menu reopen was wasted I/O. |
||
|---|---|---|
| .. | ||
| applications | ||
| default_profiles | ||
| lib | ||
| locales | ||
| scripts | ||
| tui | ||
| __init__.py | ||
| __main__.py | ||
| examples | ||
| main.py | ||