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, "|"))