rfd icon indicating copy to clipboard operation
rfd copied to clipboard

`FileDialog::set_directory` needs canonical path on Ubuntu

Open Ultraxime opened this issue 11 months ago • 1 comments

Hello,

I stumbled upon an issue while trying to set the directory of a FileDialog with Ubuntu.

When you set the directory using a relative path, even if path.exists() is true, the FileDialog ignores it, without a message. But if I canonicalize it before, using std::path::Path::canonicalize, it is working as expected.

I was wondering if it was an intended behavior but was not written in the documentation or an issue.

Ultraxime avatar Jan 17 '25 13:01 Ultraxime

This also impacts windows.

Bob620 avatar May 10 '25 09:05 Bob620