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
When trying to use the file picker to select applications on macOS, the picker dialog opens properly but returns empty results after selection.
The issue occurs specifically when setting up FilePickerOpenOptions with the AppleUniformTypeIdentifiers filter com.apple.application.
To Reproduce
varappPickerOptions=newFilePickerOpenOptions{Title="Select Application",FileTypeFilter=[newFilePickerFileType("Application"){AppleUniformTypeIdentifiers=["com.apple.application"]}]};varresults=awaitStorageProvider.OpenFilePickerAsync(appPickerOptions);// results is EMPTY!!
Expected behavior
The file picker should return the selected application in the results collection
ex. /System/Applications/FindMy.app
Avalonia version
11.2.4
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered:
If you are picking .app "files" - these are folders/directories in fact. OpenFilePickerAsync should have directories filtered out by design.
Thank you for the clarification. I understand that .app files are technically directories, but in this case, the intent is to select macOS application bundles, which are often represented as .app directories.
While it's true that OpenFilePickerAsync filters files by design, the issue arises because, in the context of macOS applications, selecting .app bundles should be allowed, as they are technically directories but also represent executable applications. If we are to follow the design intent of OpenFilePickerAsync, then perhaps it's worth reconsidering how applications are handled in this specific case.
Alternatively, if modifying FilePicker proves to be challenging, I would appreciate it if FolderPicker could support AppleUniformTypeIdentifiers as an option. This would allow the picker to properly handle the selection of applications without breaking the intended functionality of filtering out regular directories.
By adding this feature, it would make the file picker more flexible and better suited for macOS-specific needs, providing a better user experience when selecting applications.
Describe the bug
When trying to use the file picker to select applications on macOS, the picker dialog opens properly but returns empty results after selection.
The issue occurs specifically when setting up
FilePickerOpenOptions
with the AppleUniformTypeIdentifiers filtercom.apple.application
.To Reproduce
Expected behavior
The file picker should return the selected application in the results collection
ex.
/System/Applications/FindMy.app
Avalonia version
11.2.4
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: