dkosmari / gnome-shell-extension-totp

A GNOME Shell extension to generate Time-based One-Time Passwords (TOTP aka Time-based OTP) for websites that use 2FA.
GNU General Public License v3.0
9 stars 2 forks source link

Gnome Keyring problem #2

Closed fortizc closed 7 months ago

fortizc commented 7 months ago

Hi, I think I found a prioblem, after to lock my secretes the extension fails when I try to unlock them. I see the following message:

No such secret item at path: /org/freedesktop/secrets/collection/login/5

I tried to use the unlock / lock button on the settings with the same results... the most annoying thing is that right now the extension is not listing my OTP secrets in the systray, I need to go to the extension settings to copy them

fortizc commented 7 months ago

The error seems to come from https://github.com/dkosmari/gnome-shell-extension-totp/blob/master/secretUtils.js#L49

dkosmari commented 7 months ago

I've seen this happens when doing things like setting a keyring to auto unlock during login. That is, you unlock a collection, and keep the "Automatically unlock this keyring..." checkbox on. At that very moment, something goes wrong inside the GNOME Keyring Daemon.

Restarting the GNOME Keyring Daemon (or just logging out and back in again) seems to resolve the problem. See if this works for you:

killall gnome-keyring-daemon

Then try to access your OTP secrets, it should start gnome-keyring-daemon automatically, and the bug should be gone.

fortizc commented 7 months ago

Thanks, the workaround works! so this is a Gnome Keyring problem?

dkosmari commented 7 months ago

As far as I can tell, yes, it's a GNOME Keyring bug.

I submitted a bug: https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/149