Skip to content

fix: unregister FileProvider domain before deleting account/repos#491

Draft
dkam wants to merge 2 commits into
haiwen:masterfrom
dkam:fix/fileprovider-crash-on-repo-delete
Draft

fix: unregister FileProvider domain before deleting account/repos#491
dkam wants to merge 2 commits into
haiwen:masterfrom
dkam:fix/fileprovider-crash-on-repo-delete

Conversation

@dkam

@dkam dkam commented Apr 17, 2026

Copy link
Copy Markdown

Disclaimer: Found this while debugging FileProvider crashes in the SeaDrive logs. The unregisterDomain / fileProviderRemoveDomain functions exist but are never called during account removal or repo cleanup on macOS. Builds cleanly on macOS (Qt 6.11, Apple Clang 21, arm64) but I haven't been able to test the FileProvider integration end-to-end — would appreciate review from someone who can.

On macOS, when an account is removed or repos are deleted, the FileProvider domain was not being unregistered. This left the FileProvider extension trying to signal enumerator updates for domains that no longer exist, causing "Couldn't communicate with a helper application" errors and crashing the background daemon.

Fix by calling unregisterDomain() / fileProviderRemoveDomain() before deleting the account data, so macOS cleanly tears down the FileProvider state.

On macOS, when an account is removed or repos are deleted, the
FileProvider domain was not being unregistered. This left the
FileProvider extension trying to signal enumerator updates for
domains that no longer exist, causing "Couldn't communicate with
a helper application" errors and crashing the background daemon.

Fix by calling unregisterDomain() / fileProviderRemoveDomain()
before deleting the account data, so macOS cleanly tears down
the FileProvider state.
@dkam
dkam marked this pull request as draft April 17, 2026 02:27
The FileProvider API is macOS-only; without the guard this breaks
the Linux/Windows build with an undefined symbol.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant