support live container

This commit is contained in:
leminlimez committed 2025-06-03 18:36:19 -04:00
1 parent 50f25eac08
commit 582efbacbf
1 file changed
+6 -1
+6 -1
View File
@@ -16,7 +16,12 @@ class SymHandler {
} }
private static func getSymlinkURL() -> URL { private static func getSymlinkURL() -> URL {
return getDocumentsDirectory().appendingPathComponent(".Trash", conformingTo: .symbolicLink) let lcPath = ProcessInfo.processInfo.environment["LC_HOME_PATH"]
var docsDir = getDocumentsDirectory()
if let lcPath = lcPath {
docsDir = URL(fileURLWithPath: "\(lcPath)/Documents")
}
return docsDir.appendingPathComponent(".Trash", conformingTo: .symbolicLink)
} }
// MARK: Symlink Creation // MARK: Symlink Creation