[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#363229: xserver-xorg: No way to set the XKB data directory



On Tue, Apr 18, 2006 at 05:02:12AM +0300, Shai Berger wrote:
> Package: xserver-xorg
> Version: 1:7.0.12
> Severity: normal
> 
> 
> Following the transition to xkb-data and xkeyboard-config, I was
> told to put my customized xkb files aside and make the server use
> them by setting the XKBPATH. However, setting the XKBPATH variable
> didn't work (seems like the variable was ignored; I tried setting it
> in a user's login shell as well as root's shell, then restarting X).

It works for me.
My default XKB settings with xkb-data:
  $ setxkbmap -print
  xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(azerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc(pc105)+fr+compose(caps)"    };
        xkb_geometry  { include "pc(pc105)"     };
  };
Use XKB data from obsolete xlibs package:
  $ export XKBPATH=/etc/X11/xkb
  $ setxkbmap -print
  xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(azerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc/pc(pc105)+pc/fr+compose(caps)" };
        xkb_geometry  { include "pc(pc105)"     };
  };
The pc/ subdirectory shows that files are read from /etc/X11/xkb.
Activate these settings
  $ setxkbmap -print | xkbcomp - :0
Check that X did load files from /etc/X11/xkb
  $ xkbcomp :0 - | grep xkb_symbols
  xkb_symbols "pc/pc(pc105)+pc/fr+compose(caps)" {

This variable must be set before X is started, or if it is set later,
you must call setxkbmap after setting this variable.

> Then I tried the other method referred to in xkb-data's README.Debian,
> that of passing a -xkbdir to the server. The server did not recognize
> this flag (and gave me a list of the flags it did recognize...).

Indeed, it worked with 6.9 and does not seem to work anymore, I need
to check why.

Denis



Reply to: