fixed config file path for macos
This commit is contained in:
@@ -18,7 +18,7 @@ func GetUserConfigDirPath() (string, error) {
|
|||||||
}
|
}
|
||||||
switch currentOS := runtime.GOOS; currentOS {
|
switch currentOS := runtime.GOOS; currentOS {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
fallthrough
|
path = fmt.Sprintf("/Users/%s/.config/yellowjacket", currentUser.Username)
|
||||||
case "linux":
|
case "linux":
|
||||||
path = fmt.Sprintf("/home/%s/.config/yellowjacket", currentUser.Username)
|
path = fmt.Sprintf("/home/%s/.config/yellowjacket", currentUser.Username)
|
||||||
case "windows":
|
case "windows":
|
||||||
@@ -55,7 +55,7 @@ func getUserDataDirPath() (string, error) {
|
|||||||
}
|
}
|
||||||
switch currentOS := runtime.GOOS; currentOS {
|
switch currentOS := runtime.GOOS; currentOS {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
fallthrough
|
path = fmt.Sprintf("/Users/%s/.local/share/yellowjacket", currentUser.Username)
|
||||||
case "linux":
|
case "linux":
|
||||||
path = fmt.Sprintf("/home/%s/.local/share/yellowjacket", currentUser.Username)
|
path = fmt.Sprintf("/home/%s/.local/share/yellowjacket", currentUser.Username)
|
||||||
case "windows":
|
case "windows":
|
||||||
|
|||||||
Reference in New Issue
Block a user