From 94f84625d4a274dfa8a634b8350d3e50718b987a Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Sun, 30 Oct 2022 20:21:53 +0100 Subject: [PATCH] Other: Use Cache rather than Config on non-linux OS for user data --- internal/locations/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/locations/provider.go b/internal/locations/provider.go index 4ff1b9b1..c567f507 100644 --- a/internal/locations/provider.go +++ b/internal/locations/provider.go @@ -96,7 +96,7 @@ func (p *DefaultProvider) UserCache() string { // On non-linux systems, it is the same as os.UserConfigDir(). func userDataDir() (string, error) { if runtime.GOOS != "linux" { - return os.UserConfigDir() + return os.UserCacheDir() } if dir := os.Getenv("XDG_DATA_HOME"); dir != "" {