LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kbd-1.15.5-loadkeys-search-path.patch of Package kbd (Project home:sbrabec:branches-kbd-fi-1085432)

Index: kbd-2.0.4/src/loadkeys.c
===================================================================
--- kbd-2.0.4.orig/src/loadkeys.c
+++ kbd-2.0.4/src/loadkeys.c
@@ -27,7 +27,7 @@
 #include "keymap.h"
 
 static const char *progname         = NULL;
-static const char *const dirpath1[] = { "", DATADIR "/" KEYMAPDIR "/**", KERNDIR "/", 0 };
+static const char *const dirpath1[] = { "", DATADIR "/" KEYMAPDIR "/**", DATADIR "/" XKBKEYMAPDIR "/", DATADIR "/" LEGACYKEYMAPDIR "/**", KERNDIR "/", 0 };
 static const char *const suffixes[] = { "", ".kmap", ".map", 0 };
 
 static void __attribute__((noreturn))
Index: kbd-2.0.4/src/paths.h
===================================================================
--- kbd-2.0.4.orig/src/paths.h
+++ kbd-2.0.4/src/paths.h
@@ -5,6 +5,8 @@
  * The following five subdirectories are defined:
  */
 #define KEYMAPDIR "keymaps"
+#define XKBKEYMAPDIR "keymaps/xkb"
+#define LEGACYKEYMAPDIR "keymaps/legacy"
 #define UNIMAPDIR "unimaps"
 #define TRANSDIR "consoletrans"
 #define VIDEOMODEDIR "videomodes"