keyboard layouts config wrong under systemd user sessions

Bug #1627057 reported by Sebastien Bacher
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-keyboard (Ubuntu)
Fix Released
High
Unassigned
unity-settings-daemon (Ubuntu)
Invalid
High
Unassigned

Bug Description

Using a yakkety daily iso in french (or other locales)

unity-control-center -> input lists no input method and the keyboard indicator displays a low resolution icon. The org.gnome.desktop.input-sources sources gsettings key is empty.

The issue seems to be fixed by disabling systemd user session so probably a problem in that transition...

Related branches

Changed in unity-settings-daemon (Ubuntu):
importance: Undecided → High
Revision history for this message
Iain Lane (laney) wrote :

It's some kind of race I think

As far as I can see after a quick look, u-s-d asks localed for the layout in use and uses this to populate input-sources. If you restart u-s-d from within the live session then it is picked up correctly.

to be continued...

Revision history for this message
Iain Lane (laney) wrote :

I know what happens, and I have a patch.

I don't know *why* it happens.

unity-settings-daemon talks to systemd-localed to find out which locale to set up the keyboard for. It puts this into "org.gnome.desktop.input-sources sources". This bit works fine.

Then indicator-keyboard starts, and wants to perform some kind of migration (don't really know what the history is). This migration disregards the values that were in "sources", and doesn't itself look at localed to re-compute them. It ends up setting "sources" to an empty array.

The fix is to have indicator-keyboard append to the array, and not just overwrite it.

Changed in unity-settings-daemon (Ubuntu):
status: New → Invalid
Changed in indicator-keyboard (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Iain Lane (laney) wrote :

(Self approving the MP, since none of the usual suspects are around today and I think this is important to have in the image. Sorry if this breaks things...)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-keyboard - 0.0.0+16.10.20161010-0ubuntu1

---------------
indicator-keyboard (0.0.0+16.10.20161010-0ubuntu1) yakkety; urgency=medium

  [ Iain Lane ]
  * Don't clobber unity-settings-daemon's configured input sources when
    migrating from old configurations (LP: #1627057)

 -- <email address hidden> (<email address hidden>) Mon, 10 Oct 2016 14:20:13 +0000

Changed in indicator-keyboard (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.