When doing FileDialogBuilder::new().pick_file(), my app just hangs. I use Manjaro (Arch flavor) Linux with all dependencies installed, except libvips (see https://github.com/tauri-apps/tauri-docs/issues/1663 )
I started a fresh Tauri app with npm create tauri-app@latest and added tauri::api::dialog::blocking::FileDialogBuilder::new().pick_file().unwrap(); line to beginning of a greet command, and the problem persists. Am I doing it wrong?
#App hangs when trying to display open file dialog.
2 messages · Page 1 of 1 (latest)
Check out the docs at the top of the blocking module: https://docs.rs/tauri/latest/tauri/api/dialog/blocking/index.html
The default greet command is a non-async so it won't work. In this context you can just make the command a async fn greet() and it should work.