[systemd-devel] Changing how localed writes keymap for xorg

Lennart Poettering lennart at poettering.net
Wed Feb 11 08:36:28 PST 2015


On Wed, 11.02.15 14:18, Colin Guthrie (gmane at colin.guthr.ie) wrote:

> >> Also, anything plugged in to Xorg after running localectl (thus updating
> >> 00-keyboard.conf) will also get the "us" keymap (as that was what was in
> >> place at Xorg init time).
> >>
> >> Wouldn't it be better to do the following:
> >>
> >> 1. deprecate the 00-keyboard.conf xorg.conf.d file
> >> 2. Instead apply the locale settings in udev via "xkb*" properties
> > 
> > No, certainly not. The Xorg fragment is actual
> > configuration. Configuration should beat the rulesets really, which
> > carry device metadata. 
> 
> Well, I don't disagree, but it would be nice to have a way such that
> inserting a new USB keyboard after configuring the global default, that
> it *actually* takes effect. Currently, without some other layer on top
> (as in GNOME), localed does not achieve this, but the udev approach
> does.

I am fine with changing what localed writes out, but udev rules is not
the way to go.

For example, if we can make the snippet we write out only be used as
fallback, then I am all for it.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list