Skip to content

Commit a09e14a

Browse files
committed
closes #56
1 parent 234a04a commit a09e14a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/cryptomator/linux/keychain/SecretServiceKeychainAccess.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import org.cryptomator.integrations.keychain.KeychainAccessException;
77
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
88
import org.freedesktop.dbus.exceptions.DBusExecutionException;
9+
import org.slf4j.Logger;
10+
import org.slf4j.LoggerFactory;
911

1012
import java.io.IOException;
1113
import java.util.List;
@@ -15,6 +17,8 @@
1517
@OperatingSystem(OperatingSystem.Value.LINUX)
1618
public class SecretServiceKeychainAccess implements KeychainAccessProvider {
1719

20+
private static Logger LOG = LoggerFactory.getLogger(SecretServiceKeychainAccess.class);
21+
1822
private final String LABEL_FOR_SECRET_IN_KEYRING = "Cryptomator";
1923

2024
@Override
@@ -27,12 +31,8 @@ public boolean isSupported() {
2731
try {
2832
return SimpleCollection.isAvailable();
2933
} catch (ExceptionInInitializerError e) {
30-
//TODO: remove try-catch once secret-service lib is fixed
31-
if(e.getException() instanceof DBusExecutionException) {
32-
return false;
33-
} else {
34-
throw e;
35-
}
34+
LOG.warn("Initializing secret service keychain access failed", e.getException());
35+
return false;
3636
}
3737
}
3838

0 commit comments

Comments
 (0)