File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
import org .cryptomator .integrations .keychain .KeychainAccessException ;
7
7
import org .cryptomator .integrations .keychain .KeychainAccessProvider ;
8
8
import org .freedesktop .dbus .exceptions .DBusExecutionException ;
9
+ import org .slf4j .Logger ;
10
+ import org .slf4j .LoggerFactory ;
9
11
10
12
import java .io .IOException ;
11
13
import java .util .List ;
15
17
@ OperatingSystem (OperatingSystem .Value .LINUX )
16
18
public class SecretServiceKeychainAccess implements KeychainAccessProvider {
17
19
20
+ private static Logger LOG = LoggerFactory .getLogger (SecretServiceKeychainAccess .class );
21
+
18
22
private final String LABEL_FOR_SECRET_IN_KEYRING = "Cryptomator" ;
19
23
20
24
@ Override
@@ -27,12 +31,8 @@ public boolean isSupported() {
27
31
try {
28
32
return SimpleCollection .isAvailable ();
29
33
} 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 ;
36
36
}
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments