[PATCH] Always use server-<display>.xkm for xkbcomp output files

Adam Jackson ajax at nwnk.net
Wed Nov 19 14:44:42 PST 2008

On Wed, 2008-11-19 at 14:04 -0800, Alan Coopersmith wrote:
> The attached patch is code we've used in Xsun for years, and our Sun Ray
> people recently hit the same issue again in their Xorg 1.2-based Xnewt
> server port.   It simply changes the Xserver to always use a filename
> containing the display number for xkm output, so that if two servers are
> starting at once with the same keymap they don't overwrite or delete
> each other's xkm files.    While we're probably more likely to hit this
> on Sun Ray servers which can have hundreds of X servers running, I think
> it could also hit a single user machine with :0 & :1 starting on different
> vt's at the same time.
> (Of course, the oft-mentioned change of not forking xkbcomp to compile to
>  xkm would also solve this, but this is a much simpler short-term fix.)
> Does this look good to everyone?   Anyone know of a reason it would not
> be a good idea?

Hey, it deletes code, how can it not be good.

Signed-off-by: Adam Jackson <ajax at redhat.com>

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20081119/e19f5f7c/attachment.pgp>

More information about the xorg mailing list