File tree Expand file tree Collapse file tree 4 files changed +17
-15
lines changed
shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt Expand file tree Collapse file tree 4 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ - (instancetype)init
5757 // https://developer.apple.com/library/mac/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html#//apple_ref/doc/uid/TP40011183-CH3-SW24
5858
5959 NSURL *container = [[NSFileManager defaultManager ] containerURLForSecurityApplicationGroupIdentifier: socketApiPrefix];
60- NSURL *socketPath = [container URLByAppendingPathComponent: @" .socket" isDirectory: NO ];
60+ NSURL *library = [container URLByAppendingPathComponent: @" Library" isDirectory: true ];
61+ NSURL *applicationSupport = [library URLByAppendingPathComponent: @" Application Support" isDirectory: true ];
62+ NSURL *socketPath = [applicationSupport URLByAppendingPathComponent: @" .socket" isDirectory: NO ];
6163
6264 NSLog (@" Socket path: %@ " , socketPath.path );
6365
Original file line number Diff line number Diff line change 1616
1717QString fileProviderSocketPath ()
1818{
19- // This must match the code signing Team setting of the extension
20- // Example for developer builds (with ad-hoc signing identity): "" "com.owncloud.desktopclient" ".fileprovidersocket"
21- // Example for official signed packages: "9B5WD74GWJ." "com.owncloud.desktopclient" ".fileprovidersocket"
22- NSString *appGroupId = @SOCKETAPI_TEAM_IDENTIFIER_PREFIX APPLICATION_REV_DOMAIN;
23-
19+ NSString *appGroupId = [NSString stringWithFormat: @" group.%@ " , @APPLICATION_REV_DOMAIN];
2420 NSURL *container = [[NSFileManager defaultManager ] containerURLForSecurityApplicationGroupIdentifier: appGroupId];
25- NSURL *socketPath = [container URLByAppendingPathComponent: @" .fileprovidersocket" isDirectory: false ];
26- return QString::fromNSString (socketPath.path );
21+ NSURL *library = [container URLByAppendingPathComponent: @" Library" isDirectory: true ];
22+ NSURL *applicationSupport = [library URLByAppendingPathComponent: @" Application Support" isDirectory: true ];
23+ NSURL *socket = [applicationSupport URLByAppendingPathComponent: @" .fileprovidersocket" isDirectory: false ];
24+
25+ return QString::fromNSString (socket.path );
2726}
2827
2928} // namespace Mac
Original file line number Diff line number Diff line change @@ -209,10 +209,12 @@ QDir fileProviderDomainSupportDirectory(const QString domainIdentifier)
209209QString groupContainerPath ()
210210{
211211 NSString *const groupId = (NSString *)[NSBundle .mainBundle objectForInfoDictionaryKey: @" NCFPKAppGroupIdentifier" ];
212+
212213 if (groupId == nil ) {
213214 qCWarning (lcMacFileProviderUtils) << " No app group identifier found in Info.plist, cannot determine group container path." ;
214215 return QString ();
215216 }
217+
216218 return QString::fromNSString ([NSFileManager .defaultManager containerURLForSecurityApplicationGroupIdentifier: groupId].path );
217219}
218220
Original file line number Diff line number Diff line change 1313
1414QString socketApiSocketPath ()
1515{
16- // This must match the code signing Team setting of the extension
17- // Example for developer builds (with ad-hoc signing identity): "" "com.owncloud.desktopclient" ".socket"
18- // Example for official signed packages: "9B5WD74GWJ." "com.owncloud.desktopclient" ".socket"
19- NSString *appGroupId = @SOCKETAPI_TEAM_IDENTIFIER_PREFIX APPLICATION_REV_DOMAIN;
20-
16+ NSString *appGroupId = [NSString stringWithFormat: @" group.%@ " , @APPLICATION_REV_DOMAIN];
2117 NSURL *container = [[NSFileManager defaultManager ] containerURLForSecurityApplicationGroupIdentifier: appGroupId];
22- NSURL *socketPath = [container URLByAppendingPathComponent: @" .socket" isDirectory: false ];
23- return QString::fromNSString (socketPath.path );
18+ NSURL *library = [container URLByAppendingPathComponent: @" Library" isDirectory: true ];
19+ NSURL *applicationSupport = [library URLByAppendingPathComponent: @" Application Support" isDirectory: true ];
20+ NSURL *socket = [applicationSupport URLByAppendingPathComponent: @" .socket" isDirectory: false ];
21+
22+ return QString::fromNSString (socket.path );
2423}
2524
2625}
You can’t perform that action at this time.
0 commit comments