Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
czchen opened this issue Dec 8, 2023 · 1 comment
Open

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

czchen opened this issue Dec 8, 2023 · 1 comment

Comments

@czchen
Copy link

czchen commented Dec 8, 2023

Reprocedure Step

  • Display a valid QR code on screen.
  • Select Add Account.
  • Select Scan QR Code.
  • There is no response.

Expect Result

  • The account shall be added.

Others

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

@imrejonk
Copy link

imrejonk commented Mar 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants