gkbd-keyboard-display crash when show keyboard layout in gnome-shell input method menu
Affected version
Fedora 33
gnome-shell-3.38.3-1.fc33.x86_64
Both in Xorg and Wayland
Bug summary
Add Chinese input method "Intelligent Pinyin", switch to use this input method, then click the Show Keyboard Layout menu, gkbd-keyboard-display is crashed.
Steps to reproduce
- Add "Intelligent Pinyin" input method in gnome-control-center
- Switch to use this input method
- Click Show Keyboard Layout menu
What happened
The following command is run from gnome-shell:
gkbd-keyboard-display -l default
and it crashed.
What did you expect to happen
The following command is run from gnome-shell:
gkbd-keyboard-display -l us
.
Then the current keyboard layout like "us" is shown.
Relevant logs, screenshots, screencasts etc.
Some ibus input method doesn't specify the keyboard layout, it always use the current keyboard layout; and ibus will return "default" for the keyboard layout.
Then gkbd-keyboard-display will crash with the "default" layout.