[PATCH libxkbcommon 2/2] src/context: Remove ~/.xkb from search path
Mihail Konev
k.mvc at ya.ru
Thu Nov 17 17:44:12 UTC 2016
Signed-off-by: Mihail Konev <k.mvc at ya.ru>
---
src/context.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/context.c b/src/context.c
index e9e939b6b0eb..c9879a834074 100644
--- a/src/context.c
+++ b/src/context.c
@@ -76,7 +76,7 @@ XKB_EXPORT int
xkb_context_include_path_append_default(struct xkb_context *ctx)
{
const char *home, *root, *xdg;
- char *user_path, *xdg_path = NULL;
+ char *xdg_path = NULL;
int err;
int ret = 0;
@@ -107,12 +107,6 @@ xkb_context_include_path_append_default(struct xkb_context *ctx)
free(xdg_path);
}
- err = asprintf(&user_path, "%s/.xkb", home);
- if (err <= 0)
- return ret;
- ret |= xkb_context_include_path_append(ctx, user_path);
- free(user_path);
-
return ret;
}
--
2.9.2
More information about the xorg-devel
mailing list