mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
As per [the docs for `NSFileProviderReplicatedExtension item(for:request:completionHandler:)`][1], the system will automatically retry calling the method if the error is not one of `.notAuthenticated`, `.serverUnreachable`, or `.noSuchItem`. From my observations it seems that if the error `.cannotSynchronize` is returned for the root container (i.e. `NSFileProviderRootContainerItemIdentifier`), the system/file provider framework just ends up deleting the newly created sync directory inside `~/Library/CloudStorage`. This broke the entry in the Finder sidebar. After changing the error to `.notAuthenticated` (which is semantically wrong, but alas), I now could disable/enable the File Provider as often as I wanted without the Finder sidebar entry to ever break due to the directory having been removed previously ... Strange, this. [1]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/item(for:request:completionhandler:)#Discussion Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org> |
||
|---|---|---|
| .. | ||
| dolphin | ||
| icons | ||
| libcloudproviders | ||
| MacOSX | ||
| nautilus | ||
| windows | ||
| CMakeLists.txt | ||