-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Need fallback behaviour when dirs::download_dir returns None #118
Comments
You can solve this by setting it in your config like this: {
"profiles": {
...
},
"dirs": {
"downloads": "/some/path"
}
} or by exporting the environment variable |
@balejk thx! Indeed, this does the trick. According to https://www.freedesktop.org/wiki/Software/xdg-user-dirs/
Edit: Linked the wrong crate 😹 |
I opened an issue here: dirs-dev/dirs-rs#50. But not sure if the default value should be implemented by the |
This should be handled somehow, the least effort would be to make it optional (and then just never download anything). |
[...] no dirs.downloads value configured [...]
after building
I've implemented this the way @benjajaja described, and made it optional with an error message displayed after startup when you try to download a file without either specifying a path or a downloads directory. |
Hope that enough info? If not let me know. Thx for your time <3
The text was updated successfully, but these errors were encountered: