Skip to content

Commit

Permalink
Add more data and config search paths on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
adrg committed Oct 15, 2024
1 parent 0d710b1 commit 6c0ef54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paths_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 6c0ef54

Please sign in to comment.