mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
os2: make config directory on darwin also ~/.config, it is the proper place
This commit is contained in:
@@ -42,7 +42,7 @@ user_config_dir :: proc(allocator: runtime.Allocator) -> (dir: string, err: Erro
|
|||||||
case .Darwin:
|
case .Darwin:
|
||||||
dir = get_env("HOME", allocator)
|
dir = get_env("HOME", allocator)
|
||||||
if dir != "" {
|
if dir != "" {
|
||||||
dir = concatenate({dir, "/Library/Application Support"}, allocator) or_return
|
dir = concatenate({dir, "/.config"}, allocator) or_return
|
||||||
}
|
}
|
||||||
case: // All other UNIX systems
|
case: // All other UNIX systems
|
||||||
dir = get_env("XDG_CACHE_HOME", allocator)
|
dir = get_env("XDG_CACHE_HOME", allocator)
|
||||||
|
|||||||
Reference in New Issue
Block a user