Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*******************************************************************************

=== 1.0.31 ===

* Fixed $XDG_CONFIG_HOME being ignored.

=== 1.0.30 ===
* Added possibility to perform casted fetch from expr::value_t.
Expand Down
12 changes: 8 additions & 4 deletions src/main/runtime/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,15 @@ namespace lsp
}
}
#else
status_t res = get_env_var("HOME", &upath);
status_t res = get_env_var("XDG_CONFIG_HOME", &upath);
if (res != STATUS_OK)
return res;
if (!upath.append_ascii(FILE_SEPARATOR_S ".config"))
return STATUS_NO_MEM;
{
res = get_env_var("HOME", &upath);
if (res != STATUS_OK)
return res;
if (!upath.append_ascii(FILE_SEPARATOR_S ".config"))
return STATUS_NO_MEM;
}
#endif /* PLATFORM_WINDOWS */

path->swap(&upath);
Expand Down