Skip to content

fix(config): ensure the default config dir at first launch - #41

Merged
rikettsie merged 1 commit into
mainfrom
fix/ensure-dot-ringdrop-dir
Jul 11, 2026
Merged

fix(config): ensure the default config dir at first launch#41
rikettsie merged 1 commit into
mainfrom
fix/ensure-dot-ringdrop-dir

Conversation

@rikettsie

Copy link
Copy Markdown
Owner

On any first run, after a fresh new installation (one without previous ~/.ringdrop directory), the very first rdrop invocation fails with "No such file or directory" and the directory is never created.

Config::load_or_create wrote config.json without ensuring the target data dir exists.

This fix add a create_dir_all(data_dir) before writing the config.json.

@rikettsie rikettsie self-assigned this Jul 11, 2026
@rikettsie rikettsie added bug Something isn't working critical labels Jul 11, 2026
@rikettsie
rikettsie merged commit 8d3c268 into main Jul 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working critical

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant