File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,22 @@ private static DBusConnection getNewConnection() throws DBusException {
97
97
}
98
98
99
99
public boolean isSupported () {
100
- return wallet .isEnabled ();
100
+ try {
101
+ return wallet .isEnabled ();
102
+ } catch (RuntimeException e ) {
103
+ LOG .warn ("Failed to check if KDE Wallet is available." , e );
104
+ return false ;
105
+ }
101
106
}
102
107
103
- public boolean isLocked () { return !wallet .isOpen (Static .DEFAULT_WALLET ); }
108
+ public boolean isLocked () {
109
+ try {
110
+ return !wallet .isOpen (Static .DEFAULT_WALLET );
111
+ } catch (RuntimeException e ) {
112
+ LOG .warn ("Failed to check whether KDE Wallet is open, therefore considering it closed." , e );
113
+ return true ;
114
+ }
115
+ }
104
116
105
117
public void storePassphrase (String key , CharSequence passphrase ) throws KeychainAccessException {
106
118
try {
You can’t perform that action at this time.
0 commit comments