Commit ecdf7087 authored by Lubomir Rintel's avatar Lubomir Rintel
Browse files

applet-agent: tolerate keyring not being there for interactive requests

This is essentially an usability thing that allows system-owned secrets to
be used even when GNOME keyring is not installed.

#3
parent fe74f80d
Pipeline #14823 passed with stages
in 15 minutes and 3 seconds
......@@ -299,6 +299,11 @@ keyring_find_secrets_cb (GObject *source,
"The secrets request was canceled by the user");
g_error_free (search_error);
goto done;
} else if ( (r->flags & NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION)
&& g_error_matches (search_error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN)) {
/* If the connection always asks for secrets, tolerate
* keyring service not being present. */
g_clear_error (&search_error);
} else if (search_error) {
error = g_error_new (NM_SECRET_AGENT_ERROR,
NM_SECRET_AGENT_ERROR_FAILED,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment