GNOME Bugzilla – Bug 144159
"keyboard model" list is not available
Last modified: 2005-02-03 01:10:34 UTC
This bug is applicable to any X server which does not have a rules file which specifies the available keyboard layouts and the various options. Eg: This bug is seen on Solaris as Xsun does not provide a rules file Steps to reproduce: 1. Select launch-> preference-> keyboard-> behavior 2. Select the "layout" tab 3. Select dropdown box in the "keyboard model" Observation and bug: No keyboard model listed in the dropdown box. The "layout option" tab also does not list any options.
The available keyboard layouts and the options are listed from a rules file provided by X. For eg: /usr/X11R6/lib/X11/xkb/rules/xfree86.xml for XFree86. But if X does not provide this file the above bug is seen. If XKB support is not available and if there is no rules file present, then hiding the layout and option tabs solves the bug. Attaching a patch shortly.
Created attachment 28595 [details] [review] patch which fixes the bug
Wait a sec. Now libxklavier goes with its own "fallback" copy of xfree86.xml (as Jody advised). Was it installed on your system?
The "fallback" copy of xfree86.xml is used only if for some reason the rules file provided by Xserver cannot be stat'd. The rules filename is obtained from _XKB_RULES_NAMES atom. In case of Xsun, _XKB_RULES_NAMES atom is not set and hence XklConfigLoadRegistry () returns flase and no attempt is made to use the fallback file.
Sergey, does this mean the patch is still needed? Or does it mean libxklavier should be changed?
Sergey?
There was a long discussion about "bad" servers... *** This bug has been marked as a duplicate of 152105 ***