From e66ff8be9f446f7f007d88f30ea4ead59f72d0b9 Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Sat, 14 Feb 2026 19:42:25 +0200 Subject: [PATCH] feat(cmd): recovery files moved to [...]/sointu/recovery/ --- CHANGELOG.md | 3 +++ cmd/sointu-track/main.go | 2 +- cmd/sointu-vsti/main.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb8a30..b395f7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). did not, resulting it claiming errors in patches that worked once compiled. ### Changed +- Recovery files were moved to `os.UserConfigDir()/sointu/recovery/` instead of + `os.UserConfigDir()/sointu/` so that they don't pollute the main configuration + directory and so that it's easy to delete just the recovery files. - Tracker model supports now enum-style values, which are integers that have a name associated with them. These enums are used to display menus where you select one of the options, for example in the MIDI menu to choose one of the diff --git a/cmd/sointu-track/main.go b/cmd/sointu-track/main.go index cadfca5..cb533b2 100644 --- a/cmd/sointu-track/main.go +++ b/cmd/sointu-track/main.go @@ -42,7 +42,7 @@ func main() { } recoveryFile := "" if configDir, err := os.UserConfigDir(); err == nil { - recoveryFile = filepath.Join(configDir, "Sointu", "sointu-track-recovery") + recoveryFile = filepath.Join(configDir, "sointu", "recovery", "sointu-track-recovery.json") } broker := tracker.NewBroker() midiContext := cmd.NewMidiContext(broker) diff --git a/cmd/sointu-vsti/main.go b/cmd/sointu-vsti/main.go index 3fd9adb..5206fb7 100644 --- a/cmd/sointu-vsti/main.go +++ b/cmd/sointu-vsti/main.go @@ -43,7 +43,7 @@ func init() { if configDir, err := os.UserConfigDir(); err == nil { randBytes := make([]byte, 16) rand.Read(randBytes) - recoveryFile = filepath.Join(configDir, "sointu", "sointu-vsti-recovery-"+hex.EncodeToString(randBytes)) + recoveryFile = filepath.Join(configDir, "sointu", "recovery", "sointu-vsti-recovery-"+hex.EncodeToString(randBytes)+".json") } broker := tracker.NewBroker() model := tracker.NewModel(broker, cmd.Synthers, cmd.NewMidiContext(broker), recoveryFile)