From edc4ab7ba476c1dce96236511fb17a056821e221 Mon Sep 17 00:00:00 2001 From: sqshq Date: Sun, 4 Aug 2019 00:48:46 -0400 Subject: [PATCH] use same ways to get homedir for both linux and macOS --- metadata/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/storage.go b/metadata/storage.go index e5ff71f..e1966c7 100644 --- a/metadata/storage.go +++ b/metadata/storage.go @@ -23,7 +23,7 @@ func fileExists(filename string) bool { func getPlatformStoragePath(filename string) string { switch runtime.GOOS { case "darwin": - home, _ := os.UserHomeDir() + home, _ := homedir.Dir() return filepath.Join(home, macOSDir, filename) case "windows": cache, _ := os.UserCacheDir()