1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-13 16:49:29 +00:00

secret-store: Work around bug in gnome-keyring preventing keyring unlocking

When a keyring is cold (unlocked) the schema is set as
"org.freedesktop.Secret.Generic". If we require the name to strictly match
while searching we won't ever get a match.

See https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/89 and
https://gitlab.gnome.org/GNOME/libsecret/-/issues/7 for more information

Closes #316
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-07-21 16:28:35 +02:00
parent c1d6f1d4a6
commit 9d9e989be4

View file

@ -32,7 +32,12 @@ const SecretSchema *
calls_secret_get_schema (void)
{
static const SecretSchema schema = {
"sm.puri.Calls", SECRET_SCHEMA_NONE,
/** SECRET_SCHEMA_DONT_MATCH_NAME is used as a workaround for a bug in gnome-keyring
* which prevents cold keyrings from being searched (and hence does not prompt for unlocking)
* see https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/89 and
* https://gitlab.gnome.org/GNOME/libsecret/-/issues/7 for more information
*/
"sm.puri.Calls", SECRET_SCHEMA_DONT_MATCH_NAME,
{
{ CALLS_USERNAME_ATTRIBUTE, SECRET_SCHEMA_ATTRIBUTE_STRING },
{ CALLS_SERVER_ATTRIBUTE, SECRET_SCHEMA_ATTRIBUTE_STRING },