fix: replace default config directory

This commit is contained in:
Adrien Waksberg 2019-07-22 19:29:32 +02:00
parent c35b543004
commit 4f1db487e5
2 changed files with 4 additions and 3 deletions

View file

@ -19,6 +19,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- Prefix error message with ERROR
- Fix new line with clear input
- Replace sha1 to sha512 in pbkdf2.Key function
- Replace default config directory
## v1.0.0 - 2019-07-12

View file

@ -41,11 +41,11 @@ func (c *Config) Init() error {
}
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" {
c.WalletDir = fmt.Sprintf("%s/AppData/Local/mpw", user.HomeDir)
c.WalletDir = fmt.Sprintf("%s/AppData/Local/gpm", user.HomeDir)
} else {
c.WalletDir = fmt.Sprintf("%s/.config/mpw", user.HomeDir)
c.WalletDir = fmt.Sprintf("%s/.config/gpm", user.HomeDir)
}
c.WalletDefault = "default"
c.PasswordLength = 16