@@ -211,7 +211,7 @@ or globally, with the following priority:
1. `.crush.json`
2. `crush.json`
-3. `$HOME/.config/crush/crush.json` (Windows: `%USERPROFILE%\AppData\Local\crush\crush.json`)
+3. `$HOME/.config/crush/crush.json`
Configuration itself is stored as a JSON object:
@@ -662,17 +662,6 @@ func GlobalConfig() string {
return filepath.Join(xdgConfigHome, appName, fmt.Sprintf("%s.json", appName))
}
- // return the path to the main config directory- // for windows, it should be in `%LOCALAPPDATA%/crush/`- // for linux and macOS, it should be in `$HOME/.config/crush/`- if runtime.GOOS == "windows" {- localAppData := os.Getenv("LOCALAPPDATA")- if localAppData == "" {- localAppData = filepath.Join(os.Getenv("USERPROFILE"), "AppData", "Local")- }- return filepath.Join(localAppData, appName, fmt.Sprintf("%s.json", appName))- }-
return filepath.Join(home.Dir(), ".config", appName, fmt.Sprintf("%s.json", appName))
}