native-dialog-rs
native-dialog-rs copied to clipboard
Unexpected behaviour in gnome 44
When using FileDialog it is appending /Untitled to a given location.
let say I do:
let path = FileDialog::new()
.remove_all_filters()
.set_location(home_dir.to_str().unwrap())
.show_open_single_dir()
.unwrap_or(home::home_dir()).unwrap_or(home_dir);
being home_dir.to_str().unwrap() = /home/pianisimo
is is calling zenit yas the following: zenity --file-selection --directory --filename /home/pianisimo/Untitled
a workarround to me was to set an empty filename after setting the location. hope this helps.