Skip to content

Start file picker in home directory#9

Merged
adsharma merged 1 commit into
mainfrom
fix-home-file-picker
May 27, 2026
Merged

Start file picker in home directory#9
adsharma merged 1 commit into
mainfrom
fix-home-file-picker

Conversation

@adsharma
Copy link
Copy Markdown
Contributor

@adsharma adsharma commented May 27, 2026

Summary

Change the file picker default directory so first-open browsing starts in the user's home directory instead of the process current directory.

Root Cause

The frontend opens the picker by calling get_directories with an empty path. The backend treated that empty path as std::env::current_dir(), which can resolve to / depending on how the app is launched.

Validation

  • cargo fmt --check
  • cargo check

Closes #2

@adsharma adsharma marked this pull request as ready for review May 27, 2026 18:04
@adsharma adsharma merged commit 97e4171 into main May 27, 2026
5 checks passed
@adsharma adsharma deleted the fix-home-file-picker branch May 27, 2026 18:14
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.

File open behavior is broken

1 participant