From 3bf2b499a7c31022863fcd34e1619aa4f5d18a3f Mon Sep 17 00:00:00 2001 From: Ralph Plawetzki Date: Fri, 14 Aug 2020 07:40:46 +0200 Subject: [PATCH] Reverse order to initialize backend The GNOME keyring feature was implemented first and we don't want to confuse users who used it before --- .../org/cryptomator/keychain/LinuxSystemKeychainAccess.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/keychain/src/main/java/org/cryptomator/keychain/LinuxSystemKeychainAccess.java b/main/keychain/src/main/java/org/cryptomator/keychain/LinuxSystemKeychainAccess.java index cb2e5ce77..e75d387cb 100644 --- a/main/keychain/src/main/java/org/cryptomator/keychain/LinuxSystemKeychainAccess.java +++ b/main/keychain/src/main/java/org/cryptomator/keychain/LinuxSystemKeychainAccess.java @@ -23,11 +23,11 @@ public class LinuxSystemKeychainAccess implements KeychainAccessStrategy { } private static Optional constructKeychainAccess() { - try { // is kwallet or gnome-keyring installed? - Class clazz = Class.forName("org.cryptomator.keychain.LinuxKDEWalletKeychainAccessImpl"); + try { // is gnome-keyring or kwallet installed? + Class clazz = Class.forName("org.cryptomator.keychain.LinuxSecretServiceKeychainAccessImpl"); KeychainAccessStrategy instance = (KeychainAccessStrategy) clazz.getDeclaredConstructor().newInstance(); if (instance.isSupported()) return Optional.of(instance); - clazz = Class.forName("org.cryptomator.keychain.LinuxSecretServiceKeychainAccessImpl"); + clazz = Class.forName("org.cryptomator.keychain.LinuxKDEWalletKeychainAccessImpl"); instance = (KeychainAccessStrategy) clazz.getDeclaredConstructor().newInstance(); return Optional.of(instance); } catch (Exception e) {