Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panics if no XDG Download folder is not set #3

Open
alexandru0-dev opened this issue Feb 7, 2024 · 0 comments
Open

Panics if no XDG Download folder is not set #3

alexandru0-dev opened this issue Feb 7, 2024 · 0 comments

Comments

@alexandru0-dev
Copy link

Issue:

if there is no XDG user folder is set for "Download", the option is None and unwrapping causes the panic:

dest: dirs::download_dir().unwrap().join("nearby"),

Possible solution:

Use a default dir or exit gracefully also notifying the user about the problem.

bagel897 added a commit that referenced this issue Feb 8, 2024
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

No branches or pull requests

1 participant