From 505cf030bc972737d6ea775383bda10b233b034b Mon Sep 17 00:00:00 2001 From: Pham Quang Nghi Date: Wed, 20 May 2026 13:46:15 +0700 Subject: [PATCH] fix(config): infinite loop on spotify_launch_flags and non-deterministic extension ordering --- src/cmd/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/config.go b/src/cmd/config.go index f772af532c..b24cfade95 100644 --- a/src/cmd/config.go +++ b/src/cmd/config.go @@ -4,6 +4,7 @@ import ( "fmt" "log" "os" + "sort" "strings" "github.com/go-ini/ini" @@ -20,7 +21,7 @@ func EditConfig(args []string) { case "extensions", "custom_apps": arrayType(featureSection, field, value) case "spotify_launch_flags": - continue + // not editable via config command case "prefs_path", "spotify_path", "current_theme", "color_scheme": stringType(settingSection, field, value) @@ -178,6 +179,7 @@ func arrayType(section *ini.Section, field, value string) { for k := range allExts { newList = append(newList, k) } + sort.Strings(newList) key.SetValue(strings.Join(newList, "|")) changeSuccess(field, strings.Join(newList, "|"))