Secret.password_lookup_sync() return null on startup


In a Gnome Shell extension, we interact with Home Assistant API and we have to store long-live auth token. We use Secret.password_store_sync() to store it and Secret.password_lookup_sync() to retrieve it. It works great but some time, on startup, the Secret.password_lookup_sync() call return null without any error and after some time (may be 2 or 5 minutes), it will works again without any change. Do you have any idea about what I could do to make sure to retrieve the token for sure ?

Thanks !

I just noticed that if I manually launch the Seahorse app, it seems to unlock access to the token: there is something I could do while getting the secret (or before) to make sure the secret access is unlocked?

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.