Version: (using KDE KDE 3.5.1) Installed from: Debian testing/unstable Packages OS: Linux since I installed X.org 6.9.0.dfsg.1-4 from .deb neither kcontrol not kcmshell kxkb can find any keyboard layout. The following error message is produced: WARNING: KLocale: trying to look up "" in catalog. Fix the program QComboBox::changeItem: (comboModel) Index 0 out of range I can set and change the keyboard alright with setxkbmap. So it doesn't seem to be a X problem.
*** This bug has been marked as a duplicate of 121087 ***
This problem has been reported in Ubuntu : https://launchpad.net/malone/bugs/31165. It was fixed there, by replacing /usr/share/X11/ with /etc/X11/ in rules.cpp. It can also be fixed by making a symlink to link /etc/X11/ to /usr/share/X11/ manually.
Imo this bug is _NOT_ a duplicate of 121087, which has already been fixed.
Created attachment 14644 [details] Patch to fix the bug This patch fixes the bug in Ubuntu, and I suppose in Debian aswell, by redefining the variable in kdebase-3.5.1/kxkb/rules.cpp, replacing /usr/share/X11 with /etc/X11.
Reopening, it's a separate issue.
SVN commit 508515 by jriddell: Add new directory for xkb BUG: 121745 M +1 -1 rules.cpp --- branches/KDE/3.5/kdebase/kxkb/rules.cpp #508514:508515 @@ -17,7 +17,7 @@ #include "rules.h" -const char* X11DirList[6] = {"/usr/share/X11/", "/usr/local/share/X11/", "/usr/X11R6/lib/X11/", "/usr/local/X11R6/lib/X11/", "/usr/lib/X11/", "/usr/local/lib/X11/"}; +const char* X11DirList[7] = {"/etc/X11/", "/usr/share/X11/", "/usr/local/share/X11/", "/usr/X11R6/lib/X11/", "/usr/local/X11R6/lib/X11/", "/usr/lib/X11/", "/usr/local/lib/X11/"}; const char* rulesFileList[2] = {"xkb/rules/xorg", "xkb/rules/xfree86"}; KeyRules::KeyRules():
Thanks for the help, the soft link ln -s /etc/X11 /usr/share/X11 solved the problem for me.
I am currently working on refactoring kxkb code for 3.5.2 which will take care of many bugs including this one.