我gnome_keyring_unlock_sync
用来解锁钥匙圈。但是,libgnome-keyring-dev 已经过时了,我想转移到 libsecret。
GnomeKeyringResult gnome_keyring_unlock_sync (const char *keyring, const char *password);
但是,我在 libsecret 中找不到像这样的任何等效函数。我找到secret_service_unlock_sync
了,但它只接受来自交互式用户输入的密码。
// This is libsecret version. It have to read password from an interactive window.
gint
secret_service_unlock_sync (SecretService *service,
GList *objects,
GCancellable *cancellable,
GList **unlocked,
GError **error);
如何使用 libsecret 解锁密钥环?