From dcd1628ce8a1ec8d3ee72f0f8a43545c048be505 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 11 May 2022 18:52:14 +0200 Subject: [PATCH] Ensure file provider domains appear in finder sidebar Signed-off-by: Claudio Cambra --- .../FileProviderExt/FileProviderExtension.swift | 2 +- src/gui/fileprovider_mac.mm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/shell_integration/MacOSX/OwnCloudFinderSync/FileProviderExt/FileProviderExtension.swift b/shell_integration/MacOSX/OwnCloudFinderSync/FileProviderExt/FileProviderExtension.swift index df2f2e8792..53ee6bfefe 100644 --- a/shell_integration/MacOSX/OwnCloudFinderSync/FileProviderExt/FileProviderExtension.swift +++ b/shell_integration/MacOSX/OwnCloudFinderSync/FileProviderExt/FileProviderExtension.swift @@ -16,7 +16,7 @@ import FileProvider class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension { required init(domain: NSFileProviderDomain) { - // TODO: The containing application must create a domain using `NSFileProviderManager.add(_:, completionHandler:)`. The system will then launch the application extension process, call `FileProviderExtension.init(domain:)` to instantiate the extension for that domain, and call methods on the instance. + // The containing application must create a domain using `NSFileProviderManager.add(_:, completionHandler:)`. The system will then launch the application extension process, call `FileProviderExtension.init(domain:)` to instantiate the extension for that domain, and call methods on the instance. super.init() } diff --git a/src/gui/fileprovider_mac.mm b/src/gui/fileprovider_mac.mm index 59a706e20f..0a58ce1a76 100644 --- a/src/gui/fileprovider_mac.mm +++ b/src/gui/fileprovider_mac.mm @@ -20,12 +20,15 @@ #include "fileprovider.h" namespace OCC { + +Q_LOGGING_CATEGORY(lcMacFileProvider, "nextcloud.gui.macfileprovider") + namespace Mac { class FileProviderInitializer::Private { public: Private() { - domainIdentifier = @APPLICATION_REV_DOMAIN; + domainIdentifier = @SOCKETAPI_TEAM_IDENTIFIER_PREFIX APPLICATION_REV_DOMAIN; name = @APPLICATION_NAME; fileProviderDomain = [[NSFileProviderDomain alloc] initWithIdentifier:domainIdentifier displayName:name]; setupFileProvider();