File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 39
39
<project .jdk.version>19</project .jdk.version>
40
40
41
41
<!-- runtime dependencies -->
42
+
42
43
<api .version>1.2.0-beta4</api .version>
43
- <secret-service .version>1.7.0 </secret-service .version>
44
- <kdewallet .version>1.2.6 </kdewallet .version>
44
+ <secret-service .version>1.8.1-jdk17 </secret-service .version>
45
+ <kdewallet .version>1.2.8 </kdewallet .version>
45
46
<guava .version>31.1-jre</guava .version>
46
47
<slf4j .version>1.7.36</slf4j .version>
47
48
94
95
<artifactId >maven-compiler-plugin</artifactId >
95
96
<version >3.9.0</version >
96
97
<configuration >
97
- <release >17 </release >
98
+ <release >19 </release >
98
99
</configuration >
99
100
</plugin >
100
101
<plugin >
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 .connections .impl .DBusConnection ;
9
+ import org .freedesktop .dbus .connections .impl .DBusConnectionBuilder ;
9
10
import org .freedesktop .dbus .exceptions .DBusConnectionException ;
10
11
import org .freedesktop .dbus .exceptions .DBusException ;
11
12
import org .kde .KWallet ;
@@ -89,11 +90,11 @@ static Optional<ConnectedWallet> connect() {
89
90
90
91
private static DBusConnection getNewConnection () throws DBusException {
91
92
try {
92
- return DBusConnection . newConnection ( DBusConnection . DBusBusType . SESSION );
93
+ return DBusConnectionBuilder . forSessionBus (). withShared ( false ). build ( );
93
94
} catch (DBusConnectionException ce ) {
94
95
LOG .warn ("SESSION DBus not found, falling back to SYSTEM DBus" );
95
96
try {
96
- return DBusConnection . newConnection ( DBusConnection . DBusBusType . SYSTEM );
97
+ return DBusConnectionBuilder . forSystemBus (). build ( );
97
98
} catch (DBusException e ) {
98
99
throw e ;
99
100
}
You can’t perform that action at this time.
0 commit comments