[bug] FileDialogBuilder::new().set_directory("").pick_file() crashes on macOS #5564
Labels
status: needs triage
This issue needs to triage, applied to new issues
status: upstream
This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes
type: bug
Describe the bug
While building an app with Tauri, I ran into an issue on macOS, where trying to open a file selection dialog (save or open, didn't matter) crashed my application with a backtrace.
A little bit of debugging revealed that my app was setting the directory for the selection dialog to
""
(an empty string). This worked fine on Linux, which just defaulted to the current directory. But on macOS, this led to the application panicking.Reproduction
Same problem exists with
.save_file()
too, by the way.Expected behavior
I'd expect this to not crash, but default to either the home directory, or the current dir.
Platform and versions
Stack trace
The text was updated successfully, but these errors were encountered: