Ensure file provider domains appear in finder sidebar
authorClaudio Cambra <claudio.cambra@gmail.com>
Wed, 11 May 2022 16:52:14 +0000 (18:52 +0200)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 12 May 2023 05:21:06 +0000 (13:21 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/OwnCloudFinderSync/FileProviderExt/FileProviderExtension.swift
src/gui/fileprovider_mac.mm

index df2f2e879242161cd4d59373891d0e724be7c0df..53ee6bfefe37bb26caa3409e570f10ff9d1f1fd3 100644 (file)
@@ -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()
     }
     
index 59a706e20f0b77a22a9590a62dff87e10eec5126..0a58ce1a7696a2f31f45292562a40fba9e24bdb6 100644 (file)
 #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();