Merge pull request #3 from johnson-christopher/master

Save config in user's home, not root directory
This commit is contained in:
Alexander Lukyanchikov 2019-08-02 22:57:31 -04:00 committed by GitHub
commit 2359260ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ func getPlatformStoragePath(filename string) string {
cache, _ := os.UserCacheDir()
return filepath.Join(cache, windowsDir, filename)
default:
return filepath.Join(linuxDir, filename)
home, _ := os.UserHomeDir()
return filepath.Join(home, linuxDir, filename)
}
}