mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +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:
parent
c1d6f1d4a6
commit
9d9e989be4
1 changed files with 6 additions and 1 deletions
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue