fixed config file path for macos

This commit is contained in:
Logan Jones
2025-03-31 11:27:56 -05:00
parent 660acb384f
commit d1857c4419
+2 -2
View File
@@ -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":