Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

DBus OpenFolderPickerAsync returns an empty list on Ubuntu

Open 0x90d opened this issue 1 year ago • 10 comments

Describe the bug Calling OpenFolderPickerAsync returns an empty list on Ubuntu. Works fine on Windows.

To Reproduce Steps to reproduce the behavior:

var paths = await window.StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions() {
					Title = "Select folder"
				});
Console.WriteLine(paths.Count.ToString());

Expected behavior 1, but I got 0 instead.

Screenshots

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.5 LTS
  • Version: 11.0.0-preview4

Additional context I've also noticed I cannot select an empty folder. I have to select a file within a folder, otherwise the "open" button is disabled.

0x90d avatar Feb 13 '23 09:02 0x90d