diff options
| author | Adrian Room <ingolemo@gmail.com> | 2016-05-04 09:45:31 +0100 |
|---|---|---|
| committer | Adrian Room <ingolemo@gmail.com> | 2016-05-04 10:05:52 +0100 |
| commit | 68a25c751c0219ef5df589a19513e46a08965d5a (patch) | |
| tree | 32c698cca485cdea250a79e4f8cfb11a4ea19e29 | |
| parent | b1739143fb48c323c73b405c2ac9c55f2c7d21fe (diff) | |
| download | vis-68a25c751c0219ef5df589a19513e46a08965d5a.tar.gz vis-68a25c751c0219ef5df589a19513e46a08965d5a.tar.xz | |
Fixed bug, use $XDG_CONFIG_HOME correctly
Vis should look for files in `$XDG_CONFIG_HOME/vis`, not just `$XDG_CONFIG_HOME` directly.
| -rw-r--r-- | vis-lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
