File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 5
5
<modelVersion >4.0.0</modelVersion >
6
6
<groupId >org.cryptomator</groupId >
7
7
<artifactId >integrations-linux</artifactId >
8
- <version >1.0.0 </version >
8
+ <version >1.0.1 </version >
9
9
10
10
<name >integrations-linux</name >
11
11
<description >Provides optional Linux services used by Cryptomator</description >
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