@@ -662,17 +662,6 @@ func GlobalConfig() string {
662662 return filepath.Join(xdgConfigHome, appName, fmt.Sprintf("%s.json", appName))
663663 }
664664
665− // return the path to the main config directory
666− // for windows, it should be in `%LOCALAPPDATA%/crush/`
667− // for linux and macOS, it should be in `$HOME/.config/crush/`
668− if runtime.GOOS == "windows" {
669− localAppData := os.Getenv("LOCALAPPDATA")
670− if localAppData == "" {
671− localAppData = filepath.Join(os.Getenv("USERPROFILE"), "AppData", "Local")
672− }
673− return filepath.Join(localAppData, appName, fmt.Sprintf("%s.json", appName))
674− }
675−
676665 return filepath.Join(home.Dir(), ".config", appName, fmt.Sprintf("%s.json", appName))
677666}
678667