Skip to content

refactor: use ~/.config/ricochet/ as config path on all platforms#111

Merged
JosiahParry merged 1 commit intomainfrom
refactor/macos-config-path
Mar 23, 2026
Merged

refactor: use ~/.config/ricochet/ as config path on all platforms#111
JosiahParry merged 1 commit intomainfrom
refactor/macos-config-path

Conversation

@pat-s
Copy link
Copy Markdown
Member

@pat-s pat-s commented Mar 23, 2026

Summary

  • Changes config_path() to use ~/.config/ricochet/config.toml on all platforms instead of the platform-specific dirs::config_dir() (which returns ~/Library/Application Support on macOS)
  • Adds automatic one-time migration of existing macOS configs from the old location to ~/.config/
  • Simplifies test helpers that no longer need to create the Library/Application Support directory structure

Closes #78

macOS previously used ~/Library/Application Support/ricochet/ via the
dirs crate's config_dir(). This changes to ~/.config/ricochet/ on all
platforms for consistency and to avoid the whitespace in the path.

Existing macOS configs are automatically migrated on first run.

Closes #78
@pat-s pat-s requested a review from JosiahParry March 23, 2026 23:09
@JosiahParry JosiahParry merged commit 4cccb1b into main Mar 23, 2026
2 checks passed
@JosiahParry JosiahParry deleted the refactor/macos-config-path branch March 23, 2026 23: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.

refactor: change user-wide default on macOS to ~/config/ricochet/config.toml

2 participants