-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenFilePickerAsync on MacOS cannot select applications #18080
Comments
MacOS applications (i.e. |
Thank you. That makes total sense. |
I understand that. But it's also limited by underlying platforms which only allows one or another option not both (dbus, browser). Something like Win32 or macOS picker can be configured to allow both though. We potentially can add new API Other than that, ManagedFileChooser (call |
This issue can be changed into a feature request. |
I 100% agree. I don't seem to have the power to do that. |
Describe the bug
OpenFilePicker works as expected with non-appllications, but applications in the applications folder cannot be selected (nothing is returned, as if "Cancel" was clicked.
Interesting notes:
It's not the Applications folder itself - non-applications placed in the folder can be selected.
It's not the file type - C# files I have compiled can be selected.
It's not that the files are Apple applications - zoom, for example, cannot be selected.
To Reproduce
Call await OpenFilePickerAsync().
Dialog opens.
Choose any non-application file.
Click "OK".
IStorageFile is returned.
Repeat, but choose an application.
Click "OK"
No IStorageFile is returned.
Choosing FileTypeFilter of All or not including a FileTypeFilter doesn't impact this.
Expected behavior
I expect to be able to select any file.
If this is prohibited by the system in some way, feedback (exception, maybe?) that explains what is wrong should be given.
Avalonia version
11.2.1.0
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: