Open alexaandru opened 2 days ago
I will look into this issue when I have free time.
In the meantime, if anyone needs to access their preferences (and run into the same issue): I edited .local/share/gnome-shell/extensions/otp-keys@osmank3.net/extension.js
and changed:
diff --git a/extension.js b/extension.js
index 415c0d0..60e4381 100644
--- a/extension.js
+++ b/extension.js
@@ -75,8 +75,9 @@ class OtpMenuItem extends PopupMenu.PopupBaseMenuItem {
_copyToClipboard() {
const clipboard = St.Clipboard.get_default();
let code = Totp.getCode(this._otp.secret, this._otp.digits, this._otp.period, this._otp.algorithm);
- clipboard.set_text(St.ClipboardType.PRIMARY, code);
- clipboard.set_text(St.ClipboardType.CLIPBOARD, code);
+ const out = JSON.stringify({code, otp: this._otp})
+ clipboard.set_text(St.ClipboardType.PRIMARY, out);
+ clipboard.set_text(St.ClipboardType.CLIPBOARD, out);
if (this._settings.get_boolean(SETTINGS_NOTIFY))
Main.notify(_("Code copied to clipboard."), _("Copied code is: ") + code);
Now when I copy to clipboard I get both the code and the preferences together. This also proves that the preferences are fine.
If you want to access otp keys secrets, you can read it from seahorse(keyring).
Much appreciated!
I don't know what happend, but it is back working now. I tried it today over 10 times and it failed each time, before opening this issue. Then I just tried it now and it works, no issue. That path it errored about still does not exist:
$ dconf dump /org/freedesktop/secrets/
$
so it's not like it magically appeared, it's just that it no longer is an issue...
Hello,
I am on Fedora Linux 41 (Workstation Edition) using Gnome 47 on Wayland. When I installed the extension I was on Fedora 39, then I did two system upgrades along the way. It was fine on 40, but now when I tried to access the preferences it crashes with:
The app still works, I can still use the codes for logging in just fine. I just cannot open the preferences.