Skip to content

feat(config): support XDG_DATA_HOME on Windows and macOS#206

Merged
CalvinAllen merged 1 commit intomainfrom
feat/config/xdg-windows-macos
Jan 25, 2026
Merged

feat(config): support XDG_DATA_HOME on Windows and macOS#206
CalvinAllen merged 1 commit intomainfrom
feat/config/xdg-windows-macos

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Adds opt-in support for XDG_DATA_HOME environment variable on Windows and macOS
  • When XDG_DATA_HOME is set, dtvem uses $XDG_DATA_HOME/dtvem as the root directory
  • When not set, the default ~/.dtvem is still used (no breaking change)
  • Matches existing Linux behavior where XDG is already supported

Test plan

  • Unit tests added for XDG support on non-Linux platforms
  • All existing tests pass
  • Manual testing on Windows with XDG_DATA_HOME set
  • CI passes on all platforms

Closes #202

When XDG_DATA_HOME is explicitly set, dtvem will now use
$XDG_DATA_HOME/dtvem as the root directory on Windows and macOS,
matching the existing Linux behavior. This is opt-in only - when
XDG_DATA_HOME is not set, the default ~/.dtvem is still used.

Closes #202
@CalvinAllen CalvinAllen merged commit 57a6d51 into main Jan 25, 2026
12 checks passed
@CalvinAllen CalvinAllen deleted the feat/config/xdg-windows-macos branch January 25, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support XDG Base Directory Specification on Windows

1 participant