You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at src/main.rs:181:18:
called `Result::unwrap()` on an `Err` value: Path("unable to determine base dir path")note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Reproduction
Happens when user doesn't have xdg-data-dirs package installed. resolve_path() on (BaseDirectory::Document, "EnCroissant"), is only possible in linux when xdg-data-dirs is installed and set to be used. Which is generally not always the case, specially when we're not using 100% xdg complaint systems.
Can we try to avoid using user's Document directory for creating files?
Also, it took me few tries to find the culprit, can we also improve the error messages (avoid using unwrap() and maybe atleast expect() to give more useful information)?
Thanks!
Platform and versions
OS: Void Linux (base) - glibc latest
Stack trace
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Originating from https://github.com/franciscoBSalgueiro/en-croissant/blob/v0.7.1/src-tauri/src/main.rs#L82
Reproduction
Happens when user doesn't have xdg-data-dirs package installed.
resolve_path()
on(BaseDirectory::Document, "EnCroissant"),
is only possible in linux when xdg-data-dirs is installed and set to be used. Which is generally not always the case, specially when we're not using 100% xdg complaint systems.Can we try to avoid using user's Document directory for creating files?
Also, it took me few tries to find the culprit, can we also improve the error messages (avoid using
unwrap()
and maybe atleastexpect()
to give more useful information)?Thanks!
Platform and versions
OS: Void Linux (base) - glibc latest
Stack trace
No response
The text was updated successfully, but these errors were encountered: