#22111·Avalonia

macOS file picker not working properly

Author: Ruben2776Created Aug 31, 2026Updated Sep 28, 2026
Labelsbug

Describe the bug

The file picker on macOS in a bundled .app package is not responding properly.

When using the file picking functionality, it does not work for the first few clicks. I had to focus on another app and then back again for it to register the file picking.

It works as it should when debugging it in Rider, but the problem occurs on a bundled app version.

I have tested this with PicView with Avalonia version 12.1.x on macOS 15.7.3 and 15.6.1. It has also been reported in https://github.com/Ruben2776/PicView/issues/386

I believe this is in relation to https://github.com/AvaloniaUI/Avalonia/pull/21799. I experienced no trouble in the Avalonia 11.x versions.

The changelog for 12.1.1 mentions

macOS – Fix app activation by @JakobScholer in https://github.com/AvaloniaUI/Avalonia/pull/21799

but it still occurs in 12.1.1.

To Reproduce

Use IStorageProvider with FolderPickerOpenOptions, FilePickerSaveOptions or FilePickerOpenOptions in a bundled app. Active either one of them, notice nothing happens. Switch to another window, and then back again and notice it works,

Expected behavior

It should be immediately responsive without having to switch to another window.

Avalonia version

12.1.1

OS

macOS

Additional context

No response