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);
builder.setMountpoint(defaultMountPointBase);
} else if (canMountToDir) {
var dirName = vaultSettings.mountName.get();
//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);
var mountPoint = defaultMountPointBase.resolve(vaultSettings.id);
Files.createDirectories(mountPoint);
cleanup = () -> removeCreatedDirectory(mountPoint);
builder.setMountpoint(mountPoint);