summaryrefslogtreecommitdiff
path: root/src/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/context.c b/src/context.c
index 50993e1..f43ee0a 100644
--- a/src/context.c
+++ b/src/context.c
@@ -80,12 +80,6 @@ xkb_context_include_path_append_default(struct xkb_context *ctx)
int err;
int ret = 0;
- root = secure_getenv("XKB_CONFIG_ROOT");
- if (root != NULL)
- ret |= xkb_context_include_path_append(ctx, root);
- else
- ret |= xkb_context_include_path_append(ctx, DFLT_XKB_CONFIG_ROOT);
-
home = secure_getenv("HOME");
if (!home)
return ret;
@@ -95,6 +89,12 @@ xkb_context_include_path_append_default(struct xkb_context *ctx)
ret |= xkb_context_include_path_append(ctx, user_path);
free(user_path);
+ root = secure_getenv("XKB_CONFIG_ROOT");
+ if (root != NULL)
+ ret |= xkb_context_include_path_append(ctx, root);
+ else
+ ret |= xkb_context_include_path_append(ctx, DFLT_XKB_CONFIG_ROOT);
+
return ret;
}