Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
Bug Assessment: Linux per-user data split across ~/.config/nota and ~/.config/Nota
- Slug: linux-config-dir-case
- Created: 2026-10-15
- Source: pasted text (user observation)
- Verdict: valid
- Severity: medium
Report (verbatim or summarized)
Заметил проблему, что создаются такие директории с файлами: часть в ~/.config/nota, а часть в ~/.config/Nota
(Noticed that directories with files are created in two places: some in ~/.config/nota,
some in ~/.config/Nota.)
Symptom
On Linux Nota keeps its per-user files in two folders. The managed layer writes settings,
logs, recovery and presets to ~/.config/nota, while the native engine writes audio.json,
midi.json, plugins.xml and scanpaths.txt to ~/.config/Nota. Expected: one folder.
Linux filesystems are case-sensitive, so these really are two different directories.
Reproduction
- Run Nota on Linux (no
NOTA_DATA_DIR). - Change the audio device in Preferences, or scan plugins.
ls ~/.configshows bothnota/(settings.json, logs/, …) andNota/(audio.json, midi.json, plugins.xml, scanpaths.txt).
Suspected Code Paths
src/managed/Nota.Infrastructure/NotaPaths.cs:52: Linux root is<XDG_CONFIG_HOME|~/.config>/nota(lowercase).src/native/nota.engine/src/NotaConfigFile.cpp:102(cfgfile::dataDir): appends"Nota"on Linux; used byAudioConfig_miniaudio.cppandMidiConfig_rtmidi.cpp.src/native/nota.engine/pluginhost/PluginHost.cpp:146(notaSupportDir): JUCEuserApplicationDataDirectory(resolvesXDG_CONFIG_HOME/~/.config) +"Nota".- Comments repeat the split:
NotaConfigFile.h:10andPluginHost.cpp:129sayNota,NotaPaths.cs:9saysnota. .github/ISSUE_TEMPLATE/bug_report.yml:69tells users that Linux logs live in~/.config/nota/logs/.
Related: cfgfile::dataDir ignores NOTA_DATA_DIR, but NotaPaths and notaSupportDir
honour it. So on Windows and Linux, test runs still write audio.json and midi.json into the
real user folder.
Root Cause Hypothesis
Both casings go back to the first commit (e5e2a5bf). When the native config layer was
written, the casing was mirrored from Windows/macOS (Nota). The managed layer, though,
followed the XDG lowercase convention on Linux. This only shows up on case-sensitive
filesystems. Confidence: high.
Proposed Remediation
Preferred: make lowercase nota the single Linux folder (decided with the user). It
matches XDG convention, it already holds most of the data, and it is what the issue template
documents.
cfgfile::dataDir(): honourNOTA_DATA_DIRfirst, likeNotaPaths. On Linux use<root>/nota. On Windows keep%APPDATA%\Nota.- One-time migration on Linux: if
<root>/Notaexists and is not the same directory as<root>/nota, move each entry intonota/unless it is already there. Then removeNota/if it is empty. Never overwrite anything, and keep the work best-effort (error_codeoverloads). Run it once per process with a static guard. PluginHost.cpp notaSupportDir(): off macOS, delegate tonota::cfgfile::dataDir()(its header is already on the pluginhost include path, and the library links intonota_engine, which compilesNotaConfigFile.cppon Windows and Linux). That leaves one resolver for the native config files, with the migration in it.- Fix the comments in
NotaConfigFile.h,PluginHost.cppandNotaPaths.cs.
Alternatives:
- Switch managed to
Nota. This moves the larger data set and contradicts the published issue template. Rejected. - Skip the migration. Existing Linux users would lose their audio and MIDI device choice and their plugin catalog (a rescan). That is cheap to avoid.
Files likely to change:
src/native/nota.engine/src/NotaConfigFile.cppsrc/native/nota.engine/src/NotaConfigFile.hsrc/native/nota.engine/pluginhost/PluginHost.cppsrc/managed/Nota.Infrastructure/NotaPaths.cs(comment only)CHANGELOG.md([Unreleased] → Fixed)
Tests to add or update:
- The smoke test runs on macOS, where this code path is not compiled (macOS uses
~/Library/Application Support/Nota). Verification is a Linux build plus a manual check:XDG_CONFIG_HOME=/tmp/x, seed/tmp/x/Nota/audio.json, then start the engine and confirm the file moved to/tmp/x/nota/.
Risks & Considerations
- Case-insensitive filesystem on Linux (rare):
Notaandnotaare the same directory, so theequivalent()check must skip the migration. - A file present in both folders: keep the
nota/copy and leave the legacy one in place (Nota/is then not removed). No data loss. - Windows and macOS paths are unchanged.
dataDir()is called on config load/save (message thread), never on the audio thread. Filesystem work there is fine.
Open Questions
- None.