Skip to content

Fix default keyboard layout / input source choice priority (#104)

This attempts to fix the problem I identified in #104 (closed) while also not breaking for the case where there is no system source and gnome_get_input_source_from_locale returns nothing. It should implement the intended logic fully:

  • If gnome-desktop gives us an input source, always preselect that
  • If gnome-desktop gives us a keyboard layout and there's no system sources, preselect the layout gnome-desktop gave us
  • If there is a system source and we didn't get an input source from gnome-desktop, preselect the system source

Signed-off-by: Adam Williamson awilliam@redhat.com

Fixes: #104 (closed)

Edited by Philip Withnall

Merge request reports