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 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >org.cryptomator</groupId >
77 <artifactId >integrations-linux</artifactId >
8- <version >1.0.0 </version >
8+ <version >1.0.1 </version >
99
1010 <name >integrations-linux</name >
1111 <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 {
9797 }
9898
9999 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+ }
101106 }
102107
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+ }
104116
105117 public void storePassphrase (String key , CharSequence passphrase ) throws KeychainAccessException {
106118 try {
You can’t perform that action at this time.
0 commit comments