native-dialog-rs icon indicating copy to clipboard operation
native-dialog-rs copied to clipboard

Unexpected behaviour in gnome 44

Open Pianisimo opened this issue 2 years ago • 1 comments

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

Pianisimo avatar Aug 10 '23 11:08 Pianisimo

a workarround to me was to set an empty filename after setting the location. hope this helps.

Pianisimo avatar Aug 10 '23 16:08 Pianisimo