fix: improve keyring availability error detection (#7766)

Signed-off-by: sheikhlimon <sheikhlimon404@gmail.com>
This commit is contained in:
Sheikh Limon
2026-03-10 23:22:20 +06:00
committed by GitHub
parent ae6dba5743
commit b33adc8a1b
+6 -4
View File
@@ -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