#define MAX_SCANCODES 1024
-/* If keymap file is given without a path, assume this one; must end with '/' * */
-#define DEFAULT_PATH "/lib/udev/keymaps/"
-
static int evdev_open(const char *dev)
{
int fd;
{
static char result[PATH_MAX];
+ /* If keymap file is given without a path, assume udev diretory; must end with '/' * */
if (!strchr(path, '/')) {
- snprintf(result, sizeof(result), "%s%s", DEFAULT_PATH, path);
+ snprintf(result, sizeof(result), "%s%s", LIBEXECDIR "/keymaps/", path);
return result;
}
return path;