elementary / wingpanel-indicator-keyboard

Wingpanel Keyboard Indicator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No keyboard/language indicator.

eliaskas opened this issue · comments

There is no keyboard or language indicator on the top panel at the right side corner.
I use US English and Greek keyboard and I have a serious problem in changing languages.
Thank you

There should be if you have both keyboards showing in the System Settings, can you take a screenshot of the Keyboard section of the System Settings to make sure that it's correctly set?

Not him, but I can also confirm this issue on odin:

Screenshot from 2020-11-06 10-48-10

If I added three layouts the indicator appears but there are only two layouts shown:

Screenshot from 2020-11-06 10-48-39

I think the problem is that the indicator ignores any input method that uses ibus.

// source contains the IBus engine name, how do we implement it ?

Hmm, I don't think it is the cause of this issue. The indicator ignores ibus sources for a long time but I didn't face this issue before.

I have the same issue, however, in my case the indicator doesn't show even if I add both English (UK) and English (US) keyboard layouts as shown in the picture above.

So, when i was adding some layouts to see if they appear and, for no reason, it changed one of the xkb layouts to ibus. But i can't reproduce it anymore.

here, it's was to be ('xkb', 'br') and was before i added the english layout.

$ gsettings get org.gnome.desktop.input-sources sources
[('ibus', 'br'), ('ibus', 'jp'), ('xkb', 'us')]

So, this appears to be due to three issues in combination:

  1. The indicator does not show if there is only one visible layout
  2. Only xkb sources are visible
  3. Under some circumstances xkb sources get saved in the settings as ibus sources.

I am working on some related PRs and will try to fix this there.

A workround is to remove all keyboard layouts and re-add, but a recent change to the switchboard-plug-keyboard (master) prevents this so you have to use dconf-editor to change org.gnome.desktop.input-sources.sources

A workround is to remove all keyboard layouts and re-add, but a recent change to the switchboard-plug-keyboard (master) prevents this so you have to use dconf-editor to change org.gnome.desktop.input-sources.sources

This workaround seems to have fixed the issue for me, the indicator shows now, thank you.

Note: I could only reproduce this when I had an ibus engine installed.