Skip to content

Improve config directory detection on Windows and Unix (XDG)#21

Merged
kamilmac merged 1 commit intomainfrom
fix-config-path-for-windows
Jun 10, 2025
Merged

Improve config directory detection on Windows and Unix (XDG)#21
kamilmac merged 1 commit intomainfrom
fix-config-path-for-windows

Conversation

@kamilmac
Copy link
Copy Markdown
Owner

Summary

Add Windows support for config directory resolution and ignore unibear.md

Details

  • Extend getAppConfigDir() in src/utils/helpers.ts:
    • Check Deno.build.os === "windows".
    • On Windows, use APPDATA or fallback to %HOME%\AppData\Roaming and append unibear.
    • On other platforms, use XDG_CONFIG_HOME or default to ~/.config and append unibear.
  • Update .gitignore to exclude unibear.md.

This ensures Unibear stores configs in the correct platform-specific locations.

@kamilmac kamilmac merged commit c182708 into main Jun 10, 2025
1 check passed
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