You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- These changes are related to making the main app bundle of the macOS build adopt the app sandbox entitlement which imposes certain restrictions on its file system access (nextcloud/desktop#9023).
- Logs are now written to the app group container because they are not accessible by the main app for creating debug archives otherwise.
- Databases are now written to the app group container because they are not accessible by the main app for creating debug archives otherwise.
- Removed legacy database migration code because it cannot work with the new app group identifier of the now sandboxed app anymore.
- Simplified database location assembly.
Signed-off-by: Iva Horn <[email protected]>
logger.info("Due to nonexistent \"Database\" directory, assume it is not a legacy location and returning file provider extension data directory at: \(fileProviderExtensionDataDirectory.path)")
72
-
return fileProviderExtensionDataDirectory
73
-
}
74
-
75
-
// Disable file protection for database directory.
Copy file name to clipboardExpand all lines: Sources/NextcloudFileProviderKit/Extensions/FileManager+FileProviderDomainLogDirectory.swift
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ import Foundation
6
6
7
7
publicextensionFileManager{
8
8
///
9
-
/// Return the sandboxed log directory specific to the file provider domain distinguished by the given identifier.
9
+
/// Return log directory specific to the file provider domain distinguished by the given identifier.
10
10
///
11
11
/// If such directory does not exist yet, this attempts to create it implicitly.
12
12
///
@@ -16,21 +16,23 @@ public extension FileManager {
16
16
/// - Returns: A directory based on what the system returns for looking up standard directories. Likely in the sandbox containers of the file provider extension. Very unlikely to fail by returning `nil`.
Copy file name to clipboardExpand all lines: Sources/NextcloudFileProviderKit/Extensions/FileManager+FileProviderDomainSupportDirectory.swift
+8-22Lines changed: 8 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -6,46 +6,32 @@ import Foundation
6
6
7
7
publicextensionFileManager{
8
8
///
9
-
/// Return the sandboxed application support directory specific to the file provider domain distinguished by the given identifier.
9
+
/// Return the application support directory specific to the file provider domain distinguished by the given identifier.
10
10
///
11
11
/// If such directory does not exist yet, this attempts to create it implicitly.
12
12
///
13
-
/// > Legacy Support: In the past, a subdirectory in the application group container was used for everything.
14
-
/// This caused crashes due to violations of sandbox restrictions.
15
-
/// If already existent, the legacy location will be used.
16
-
/// Otherwise the data will be stored in a new location.
17
-
///
18
13
/// - Parameters:
19
14
/// - identifier: File provider domain identifier which is used to isolate application support data for different file provider domains of the same extension.
20
15
///
21
16
/// - Returns: A directory based on what the system returns for looking up standard directories. Likely in the sandbox containers of the file provider extension. Very unlikely to fail by returning `nil`.
0 commit comments