fix: replace default config directory
This commit is contained in:
parent
c35b543004
commit
4f1db487e5
2 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
||||||
- Prefix error message with ERROR
|
- Prefix error message with ERROR
|
||||||
- Fix new line with clear input
|
- Fix new line with clear input
|
||||||
- Replace sha1 to sha512 in pbkdf2.Key function
|
- Replace sha1 to sha512 in pbkdf2.Key function
|
||||||
|
- Replace default config directory
|
||||||
|
|
||||||
## v1.0.0 - 2019-07-12
|
## v1.0.0 - 2019-07-12
|
||||||
|
|
||||||
|
|
|
@ -41,11 +41,11 @@ func (c *Config) Init() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
c.WalletDir = fmt.Sprintf("%s/Library/Preferences/mpw", user.HomeDir)
|
c.WalletDir = fmt.Sprintf("%s/Library/Preferences/gpm", user.HomeDir)
|
||||||
} else if runtime.GOOS == "windows" {
|
} else if runtime.GOOS == "windows" {
|
||||||
c.WalletDir = fmt.Sprintf("%s/AppData/Local/mpw", user.HomeDir)
|
c.WalletDir = fmt.Sprintf("%s/AppData/Local/gpm", user.HomeDir)
|
||||||
} else {
|
} else {
|
||||||
c.WalletDir = fmt.Sprintf("%s/.config/mpw", user.HomeDir)
|
c.WalletDir = fmt.Sprintf("%s/.config/gpm", user.HomeDir)
|
||||||
}
|
}
|
||||||
c.WalletDefault = "default"
|
c.WalletDefault = "default"
|
||||||
c.PasswordLength = 16
|
c.PasswordLength = 16
|
||||||
|
|
Loading…
Reference in a new issue