Merge pull request #3 from johnson-christopher/master
Save config in user's home, not root directory
This commit is contained in:
commit
2359260ea9
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue