diff --git a/pom.xml b/pom.xml
index c73de60..91d72e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
1.3.0
- 0.6.0
+ 0.6.2
2.0.7
3.1.7
diff --git a/src/main/java/org/cryptomator/frontend/fuse/mount/LinuxFuseMountProvider.java b/src/main/java/org/cryptomator/frontend/fuse/mount/LinuxFuseMountProvider.java
index c62c204..158052e 100644
--- a/src/main/java/org/cryptomator/frontend/fuse/mount/LinuxFuseMountProvider.java
+++ b/src/main/java/org/cryptomator/frontend/fuse/mount/LinuxFuseMountProvider.java
@@ -40,7 +40,6 @@ public class LinuxFuseMountProvider implements MountService {
private static final Logger LOG = LoggerFactory.getLogger(LinuxFuseMountProvider.class);
private static final Path USER_HOME = Paths.get(System.getProperty("user.home"));
private static final String[] LIB_PATHS = {
- "/usr/lib/libfuse3.so", // default
"/lib/x86_64-linux-gnu/libfuse3.so.3", // debian amd64
"/lib/aarch64-linux-gnu/libfuse3.so.3", // debian aarch64
"/usr/lib64/libfuse3.so.3", // fedora
@@ -55,7 +54,7 @@ public String displayName() {
@Override
public boolean isSupported() {
- return Arrays.stream(LIB_PATHS).map(Path::of).anyMatch(Files::exists) && isFusermount3Installed();
+ return isFusermount3Installed();
}
private boolean isFusermount3Installed() {
@@ -115,9 +114,8 @@ public Mount mount() throws MountFailedException {
Objects.requireNonNull(mountPoint);
Objects.requireNonNull(mountFlags);
- var libPath = Arrays.stream(LIB_PATHS).map(Path::of).filter(Files::exists).map(Path::toString).findAny().orElseThrow();
var builder = Fuse.builder();
- builder.setLibraryPath(libPath);
+ Arrays.stream(LIB_PATHS).map(Path::of).filter(Files::exists).map(Path::toString).findAny().ifPresent(builder::setLibraryPath);
if (mountFlags.contains("-oallow_other") || mountFlags.contains("-oallow_root")) {
LOG.warn("Mounting with flag -oallow_other or -oallow_root. Ensure that in /etc/fuse.conf option user_allow_other is enabled.");
}