diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-17 16:18:04 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-17 16:18:04 +0200 |
commit | d0d3183278f987e583dfb5cd8720930148ed26f3 (patch) | |
tree | f181fe1b3492445ba30650f7c926c3613f158414 /extras/keymap/keymap.c | |
parent | bc3ebcbdb8baca707519ccd471cca967e0245404 (diff) |
extras/keymap: use LIBEXECDIR instead /lib/udev
Diffstat (limited to 'extras/keymap/keymap.c')
-rw-r--r-- | extras/keymap/keymap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extras/keymap/keymap.c b/extras/keymap/keymap.c index 454fc835c9..b708f38e7b 100644 --- a/extras/keymap/keymap.c +++ b/extras/keymap/keymap.c @@ -41,9 +41,6 @@ const struct key* lookup_key (const char *str, unsigned int len); #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; @@ -222,8 +219,9 @@ static const char* default_keymap_path(const char* path) { 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; |