Skip to content

Commit

Permalink
Fixed bug, use $XDG_CONFIG_HOME correctly
Browse files Browse the repository at this point in the history
Vis should look for files in `$XDG_CONFIG_HOME/vis`, not just `$XDG_CONFIG_HOME` directly.
  • Loading branch information
ingolemo committed May 4, 2016
1 parent b173914 commit 68a25c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vis-lua.c
Expand Up @@ -1120,7 +1120,8 @@ void vis_lua_init(Vis *vis) {

const char *xdg_config = getenv("XDG_CONFIG_HOME");
if (xdg_config) {
vis_lua_path_add(vis, xdg_config);
snprintf(path, sizeof path, "%s/vis", xdg_config);
vis_lua_path_add(vis, path);
} else if (home && *home) {
snprintf(path, sizeof path, "%s/.config/vis", home);
vis_lua_path_add(vis, path);
Expand Down

0 comments on commit 68a25c7

Please sign in to comment.