mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
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
|
||||
fn is_keyring_availability_error(&self, error_str: &str) -> bool {
|
||||
error_str.contains("keyring")
|
||||
|| error_str.contains("DBus error")
|
||||
|| error_str.contains("org.freedesktop.secrets")
|
||||
|| error_str.contains("couldn't access platform secure storage")
|
||||
let lower = error_str.to_lowercase();
|
||||
lower.contains("keyring")
|
||||
|| lower.contains("dbus")
|
||||
|| lower.contains("org.freedesktop.secrets")
|
||||
|| lower.contains("platform secure storage")
|
||||
|| lower.contains("no secret service")
|
||||
}
|
||||
|
||||
/// Get a keyring entry for the specified service
|
||||
|
||||
Reference in New Issue
Block a user