File tree Expand file tree Collapse file tree
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import org .cryptomator .integrations .keychain .KeychainAccessException ;
77import org .cryptomator .integrations .keychain .KeychainAccessProvider ;
88import org .freedesktop .dbus .exceptions .DBusExecutionException ;
9+ import org .slf4j .Logger ;
10+ import org .slf4j .LoggerFactory ;
911
1012import java .io .IOException ;
1113import java .util .List ;
1517@ OperatingSystem (OperatingSystem .Value .LINUX )
1618public 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
You can’t perform that action at this time.
0 commit comments