Let’s take an example. When I run:
xkbprint $DISPLAY keyboard.ps
what happens in the system? I would like to know how the X really work because I regularly get nasty error reports such as
Fatal Error: Cannot load geometry for /tmp/launch-NawGIk/:0
Exiting
I know that the X11 was designed in a way that it is easy to extend. But how? How does the X11 protocol work? How do the X extensions work?
Whatever happens, I’m pretty certain it isn’t going to be what you expect.
The syntax of xkbprint(1) is
and sourcefile should be a compiled xkb file.
$DISPLAYis going to resolve to something likemymachine:0.0, which isn’t a very reasonable file name.Actually, since you’re running a Mac, it’s echoing exactly what it’s seeing:
/tmp/launch-NawGIk/:0is the special OS/X magic to let launchd run X apps. The error message means that it’s not finding a geometry or display in that file. Which is no surprise since there is no file named `/tmp/launch-NawGIk/:0Try reading the man page, and see if you don’t have more luck with a compiled .xkm file.
More generally, if you want a starting introduction to X, try this article.