GNOME Bugzilla – Bug 687935
Need for some "official" API for interacting with new 3.6 keyboard layout mechanism
Last modified: 2013-04-02 08:39:50 UTC
With reference to Bug 676102 and the change in how XKB is used: Other applications used to be able to use XKB to 1. get a list of the currently available layouts (or at least 4 of them) 2. select one of them That was used by for instance other keyboard layout switchers, for instance in cinnamon. Such applications that rely on the XKB API do now behave very strangely. What should applications do now to cooperate with gnome-settings-daemon? My impression and guess is that from GNOME 3.6: * XKB should no longer be used. * The list of available layouts can be found in org.gnome.desktop.input-sources sources. * The index of the current layout can be read/set in org.gnome.desktop.input-sources current. See cinnamon discussion on https://github.com/linuxmint/Cinnamon/issues/1337 (!)
(In reply to comment #0) > What should applications do now to cooperate with gnome-settings-daemon? > > My impression and guess is that from GNOME 3.6: > > * XKB should no longer be used. > * The list of available layouts can be found in > org.gnome.desktop.input-sources sources. > * The index of the current layout can be read/set in > org.gnome.desktop.input-sources current. All of these are correct, I think. One extra caveat is that input sources can be xkb layouts or ibus engines.
Do you need any other information?
I would say that reading the input sources directly from gsettings is OK. To activate one you should use the DBus interface I'm adding in bug 696996 (still subject to change after review). *** This bug has been marked as a duplicate of bug 696996 ***