Fix wrong path in os2.user_config_dir

This commit is contained in:
Feoramund
2024-10-04 13:30:35 -04:00
parent 4b2b49dc30
commit 7d1fcfa09b
+1 -1
View File
@@ -49,7 +49,7 @@ user_config_dir :: proc(allocator: runtime.Allocator) -> (dir: string, err: Erro
dir = concatenate({dir, "/.config"}, allocator) or_return
}
case: // All other UNIX systems
dir = get_env("XDG_CACHE_HOME", allocator)
dir = get_env("XDG_CONFIG_HOME", allocator)
if dir == "" {
dir = get_env("HOME", temp_allocator())
if dir == "" {