flathub / com.yubico.yubioath

https://flathub.org/apps/details/com.yubico.yubioath
9 stars 9 forks source link

`Add Account -> Scan QR Code` does not work #78

Open czchen opened 11 months ago

czchen commented 11 months ago

Reprocedure Step

Expect Result

Others

An account can only be added by file, after filesystem=home is granted.

imrejonk commented 7 months ago

I can reproduce this on Wayland. This error gets logged: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RpcResponse.error(status: invalid-command, message: Invalid parameters: Unable to capture screenshot, body: {}) This is the exact same error that gets logged by the native (non-flatpak) Yubico Authenticator when gnome-screenshot is not installed. Yubico Authenticator relies on gnome-screenshot for grabbing QR codes. This is documented in the README.adoc file.

To be clear: I have the gnome-screenshot RPM installed, but this flatpak still fails to scan QR codes on Wayland. I suspect that the flatpak needs to have gnome-screenshot installed inside the sandbox for QR code scanning to work.

There is also a flatpak portal for taking screenshots: https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.Screenshot

A workaround for now is to use an X11 session.