This commit is contained in:
Armin Schrenk 2024-02-22 16:11:54 +01:00
parent 8412871090
commit 1ab73be1f4
No known key found for this signature in database
GPG Key ID: 8F2992163CBBA7FC

View File

@ -119,12 +119,7 @@ public class Mounter {
Files.createDirectories(defaultMountPointBase); Files.createDirectories(defaultMountPointBase);
builder.setMountpoint(defaultMountPointBase); builder.setMountpoint(defaultMountPointBase);
} else if (canMountToDir) { } else if (canMountToDir) {
var dirName = vaultSettings.mountName.get(); var mountPoint = defaultMountPointBase.resolve(vaultSettings.id);
//required for https://github.com/cryptomator/cryptomator/issues/3272
if(service.getClass().getCanonicalName().equals("org.cryptomator.frontend.fuse.mount.FuseTMountProvider")) {
dirName = vaultSettings.id;
}
var mountPoint = defaultMountPointBase.resolve(dirName);
Files.createDirectories(mountPoint); Files.createDirectories(mountPoint);
cleanup = () -> removeCreatedDirectory(mountPoint); cleanup = () -> removeCreatedDirectory(mountPoint);
builder.setMountpoint(mountPoint); builder.setMountpoint(mountPoint);