Skip to content

fix: put Windows user config under %APPDATA% - #22

Merged
vasiltop merged 1 commit into
mainfrom
fix/windows-config-appdata
Jul 21, 2026
Merged

fix: put Windows user config under %APPDATA%#22
vasiltop merged 1 commit into
mainfrom
fix/windows-config-appdata

Conversation

@vasiltop

Copy link
Copy Markdown
Owner

Summary

  • On Windows, default config path is now %APPDATA%\1coder\config.toml instead of %USERPROFILE%\.config\1coder\config.toml
  • $XDG_CONFIG_HOME still wins when set; Unix path unchanged
  • Docs/README/example header updated; test covers platform path resolution

Test plan

  • ./build/editor_tests config_default_path
  • On Windows CI / machine: confirm default resolve is under AppData\Roaming\1coder
  • With XDG_CONFIG_HOME set, still uses that on Windows

Made with Cursor

Use the usual Roaming AppData location instead of a Unix-style
%USERPROFILE%\.config path when XDG_CONFIG_HOME is unset.
@vasiltop
vasiltop merged commit 5823791 into main Jul 21, 2026
3 checks passed
@vasiltop
vasiltop deleted the fix/windows-config-appdata branch July 21, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant