After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687935 - Need for some "official" API for interacting with new 3.6 keyboard layout mechanism
Need for some "official" API for interacting with new 3.6 keyboard layout mec...
Status: RESOLVED DUPLICATE of bug 696996
Product: gnome-settings-daemon
Classification: Core
Component: general
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-11-08 19:26 UTC by mads
Modified: 2013-04-02 08:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mads 2012-11-08 19:26:36 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 (!)
Comment 1 Matthias Clasen 2012-11-09 23:42:14 UTC
(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.
Comment 2 Bastien Nocera 2013-01-28 07:50:12 UTC
Do you need any other information?
Comment 3 Rui Matos 2013-04-02 08:39:50 UTC
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 ***