From 6c0ef5457a9d501baccdad47cf4142d1107b3e25 Mon Sep 17 00:00:00 2001 From: Adrian-George Bostan Date: Tue, 15 Oct 2024 12:03:15 +0300 Subject: [PATCH] Add more data and config search paths on macOS --- paths_darwin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paths_darwin.go b/paths_darwin.go index 2d9d60c..3b3d05f 100644 --- a/paths_darwin.go +++ b/paths_darwin.go @@ -18,12 +18,16 @@ func initBaseDirs(home string) { // Initialize standard directories. baseDirs.dataHome = pathutil.EnvPath(envDataHome, homeAppSupport) - baseDirs.data = pathutil.EnvPathList(envDataDirs, rootAppSupport) + baseDirs.data = pathutil.EnvPathList(envDataDirs, + rootAppSupport, + filepath.Join(home, ".local", "share"), + ) baseDirs.configHome = pathutil.EnvPath(envConfigHome, homeAppSupport) baseDirs.config = pathutil.EnvPathList(envConfigDirs, filepath.Join(home, "Library", "Preferences"), rootAppSupport, "/Library/Preferences", + filepath.Join(home, ".config"), ) baseDirs.stateHome = pathutil.EnvPath(envStateHome, homeAppSupport) baseDirs.cacheHome = pathutil.EnvPath(envCacheHome, filepath.Join(home, "Library", "Caches"))