[PATCH app/setxkbmap 2/2] Remove ~/.xkb from search path
Mihail Konev
k.mvc at ya.ru
Thu Nov 17 17:43:10 UTC 2016
Signed-off-by: Mihail Konev <k.mvc at ya.ru>
---
setxkbmap.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/setxkbmap.c b/setxkbmap.c
index 7cac2ce5207c..5d8a0a47baa4 100644
--- a/setxkbmap.c
+++ b/setxkbmap.c
@@ -397,15 +397,9 @@ parseArgs(int argc, char **argv)
{
const char *home = getenv("HOME");
const char *xdg = getenv("XDG_CONFIG_HOME");
- char *home_path, *xdg_path;
+ char *xdg_path;
int rc;
- rc = asprintf(&home_path, "%s/.xkb", home);
- if (rc >= 0) {
- addToList(&inclPath, home_path);
- free(home_path);
- }
-
rc = 0;
if (xdg != NULL) {
rc = asprintf(&xdg_path, "%s/xkb", xdg);
--
2.9.2
More information about the xorg-devel
mailing list