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
The defaultPath given to dialog.save, if it's a filename, only works if it doesn't already exist.
Otherwise, the default filename is blank, and the directory open for selection is the parent of tauri.conf.json, as if it wasn't provided.
To Reproduce
$ touch /tmp/test.txt
dialog.save({defaultPath: "/tmp/test.txt",})
Expected behavior
filename is defaulted to test.txt
directory is defaulted to /tmp
Screenshots
N/A
Platform and Versions (required):
$ cargo tauri devOperating System - Arch Linux, version Unknown X64Node.js environment Node.js - 17.3.0 @tauri-apps/cli - 1.0.0-beta.10 @tauri-apps/api - 1.0.0-beta.8Global packages npm - 8.3.0 pnpm - Not installed yarn - 1.22.17Rust environment rustc - 1.56.0 cargo - 1.56.0App directory structure/components/dist/src-tauri/node_modulesAppthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected character '^' while parsing major version number")', src/info.rs:637:45note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Additional context
N/A
Stack Trace
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
The
defaultPath
given todialog.save
, if it's a filename, only works if it doesn't already exist.Otherwise, the default filename is blank, and the directory open for selection is the parent of
tauri.conf.json
, as if it wasn't provided.To Reproduce
$ touch /tmp/test.txt
Expected behavior
test.txt
/tmp
Screenshots
N/A
Platform and Versions (required):
Additional context
N/A
Stack Trace
N/A
The text was updated successfully, but these errors were encountered: