elementary / wingpanel-indicator-keyboard

Wingpanel Keyboard Indicator
GNU General Public License v3.0
10 stars 7 forks source link

No keyboard/language indicator. #80

Closed eliaskas closed 3 years ago

eliaskas commented 4 years ago

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

tintou commented 4 years ago

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?

ryonakano commented 4 years ago

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

Marukesu commented 4 years ago

I think the problem is that the indicator ignores any input method that uses ibus. https://github.com/elementary/wingpanel-indicator-keyboard/blob/0954de558efcf3a2d67e655f460f5143bd107bd2/src/LayoutsManager.vala#L94

ryonakano commented 4 years ago

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.

michaljenicek commented 4 years ago

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.

Marukesu commented 4 years ago

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.

Marukesu commented 4 years ago

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')]
jeremypw commented 4 years ago

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.

jeremypw commented 4 years ago

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

michaljenicek commented 4 years ago

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.

jeremypw commented 4 years ago

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