Skip to content
Browse files

Fixed bug, use $XDG_CONFIG_HOME correctly

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 68a25c751c0219ef5df589a19513e46a08965d5a
Showing with 2 additions and 1 deletion.
  1. +2 −1 vis-lua.c
@@ -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);

0 comments on commit 68a25c7

Please sign in to comment.
You can’t perform that action at this time.