Commit 740e9557 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Force HOME to be defined or libxdg-basedir returns no directories

parent cb0a1d50
......@@ -260,6 +260,7 @@ struct moberg *moberg_new()
memset(result, 0, sizeof(*result));
/* Parse default configuration(s) */
setenv("HOME", "/", 0);
const char * const *config_paths = xdgSearchableConfigDirectories(NULL);
const char * const *path;
for (path = config_paths ; *path ; path++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment