When input-sources is empty, unity-settings-daemon try to fill input-sources/sources by DEFAULT_LAYOUT at get_sources_from_xkb_config().
Please use DEFAULT_LAYOUT only when doesn't other keyboard layout.
How to reproduce:
1. set xkb layout other than us layout $ setxkbmap -layout jp
2. clear settings $ gsettings set org.gnome.desktop.input-sources sources "@as []"
3. restart unity-settings-daemon $ restart unity-settings-daemon unity-settings-daemon start/running, process 13518
Expected result: xkb,jp layout and input method settings $ gsettings get org.gnome.desktop.input-sources sources [('xkb', 'jp'), ('fcitx', 'mozc')]
Actual result: xkb,us is always inserted. $ gsettings get org.gnome.desktop.input-sources sources [('xkb', 'jp'), ('xkb', 'us'), ('ibus', 'anthy')]
When input-sources is empty, unity-settings- daemon try to fill sources by DEFAULT_LAYOUT at get_sources_ from_xkb_ config( ).
input-sources/
Please use DEFAULT_LAYOUT only when doesn't other keyboard layout.
How to reproduce:
1. set xkb layout other than us layout
$ setxkbmap -layout jp
2. clear settings desktop. input-sources sources "@as []"
$ gsettings set org.gnome.
3. restart unity-settings- daemon daemon daemon start/running, process 13518
$ restart unity-settings-
unity-settings-
Expected result: desktop. input-sources sources
xkb,jp layout and input method settings
$ gsettings get org.gnome.
[('xkb', 'jp'), ('fcitx', 'mozc')]
Actual result: desktop. input-sources sources
xkb,us is always inserted.
$ gsettings get org.gnome.
[('xkb', 'jp'), ('xkb', 'us'), ('ibus', 'anthy')]