fix: improve keyring availability error detection (#7766)
Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
This commit is contained in:
@@ -948,10 +948,12 @@ impl Config {
|
|||||||
|
|
||||||
/// Check if an error string indicates a keyring availability issue that should trigger fallback
|
/// Check if an error string indicates a keyring availability issue that should trigger fallback
|
||||||
fn is_keyring_availability_error(&self, error_str: &str) -> bool {
|
fn is_keyring_availability_error(&self, error_str: &str) -> bool {
|
||||||
error_str.contains("keyring")
|
let lower = error_str.to_lowercase();
|
||||||
|| error_str.contains("DBus error")
|
lower.contains("keyring")
|
||||||
|| error_str.contains("org.freedesktop.secrets")
|
|| lower.contains("dbus")
|
||||||
|| error_str.contains("couldn't access platform secure storage")
|
|| lower.contains("org.freedesktop.secrets")
|
||||||
|
|| lower.contains("platform secure storage")
|
||||||
|
|| lower.contains("no secret service")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a keyring entry for the specified service
|
/// Get a keyring entry for the specified service
|
||||||
|
|||||||
Reference in New Issue
Block a user