How to change Onboard layout from Greek to "normal?"

Asked by Charles on 2020-08-06

How is the Onboard virtual keyboard layout changed? It somehow changed to Greek, how to change it back?

This is on Raspberry Pi 3B+ running latest Buster and updates. When I originally installed Onboard it was in "normal" QWERTY layout. Then I'm not quite sure what happened and now it's in Greek. All localization options in raspi-config are set to English and US.

Additionally, when I press a key on the virtual keyboard Onboard crashes the system and asks the Raspberry pi user to login again.

Question information

Language:
English Edit question
Status:
Solved
For:
Onboard Edit question
Assignee:
No assignee Edit question
Solved by:
Charles
Solved:
2020-08-09
Last query:
2020-08-09
Last reply:
Charles (clmoore3rd) said : #1

Figured out the answer to my question, from command line open onboard as follows:

$ onboard -l en_US

It's also possible to override the automatic locale determination by modifying the Config.py file in /usr/lib/python3/dist-packages/Onboard as follows:

def get_system_default_lang_id(self):
        #lang_id = locale.getdefaultlocale()[0]
        lang_id = "en_US"
        if not lang_id: # None e.g. with LANG=C
            lang_id = "en_US"
        return lang_id

Just take care to use spaces for the indent, otherwise you'll get a TabError: inconsistent use of tabs and spaces in indentation.