xkb: Print the xkbcomp path being executed when we fail to compile.

I don't know how many times I've had a broken server due to a bad
directory to xkbcomp, and only finding the whole path has shown me
where I went wrong.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Eric Anholt 2017-10-31 12:22:31 -07:00 committed by Peter Hutterer
parent 14af8bee24
commit 30f4d440eb
1 changed files with 4 additions and 2 deletions

View File

@ -179,8 +179,10 @@ RunXkbComp(xkbcomp_buffer_callback callback, void *userdata)
#endif
return xnfstrdup(keymap);
}
else
LogMessage(X_ERROR, "Error compiling keymap (%s)\n", keymap);
else {
LogMessage(X_ERROR, "Error compiling keymap (%s) executing '%s'\n",
keymap, buf);
}
#ifdef WIN32
/* remove the temporary file */
unlink(tmpname);