rfd icon indicating copy to clipboard operation
rfd copied to clipboard

macos: the `Open and Save Panel Service` keeps running after the file dialog is closed

Open csmoe opened this issue 2 months ago • 5 comments

As the title said, how to close the service?

csmoe avatar Oct 24 '25 07:10 csmoe

I don't know what Open and Save Panel Service is.

PolyMeilex avatar Oct 24 '25 21:10 PolyMeilex

It's the system service launched by NSOpenPanel that this library uses on mac.

csmoe avatar Oct 25 '25 01:10 csmoe

Ok, I will assume that we are leaking NSOpenPanel somehow.

Does the same problem appear in both async and sync dialog? Also, in what kind of environment is it spawned? Is it running in an winit app, CLI, or something else?

PolyMeilex avatar Oct 25 '25 01:10 PolyMeilex

Can be reproduced with the winit-example in this repo, then I changed the async dialog to sync one, it was leaked too.

OS: macOS Tahoe 26.0 (25A354)

Image

csmoe avatar Oct 27 '25 02:10 csmoe

I tested the file-dialog feature of chrome, the service keeps running too. Not sure if it's a macOS bug or normal behavior.

csmoe avatar Oct 27 '25 08:10 csmoe