Save config in user's home, not root directory
This commit is contained in:
parent
1a6a1d25b7
commit
d5e7d72a6c
|
@ -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