Hi Sebastien and William,

After a long time, finally, I made new patch and sent merge request.

Based on the advice pointed out by Sebastien, all locale except "ja_JP",
add "us" layout as default keyboard layout. "ja_JP" locale (and added
locale to locale_layout array) use layout variable in locale_layout
array as default keyboard layout.


Could you review it?

** Changed in: unity-settings-daemon (Ubuntu)
       Status: In Progress => Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to unity-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1514544

Title:
  always set "xkb,us" despite set of other layout when input-sources is
  empty

Status in unity-settings-daemon package in Ubuntu:
  Confirmed

Bug description:
  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
  $ systemctl --user restart unity-settings-daemon.servic

  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')]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1514544/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to