tadfisher / pass-otp

A pass extension for managing one-time-password (OTP) tokens
GNU General Public License v3.0
1.28k stars 85 forks source link

Display QR code on Wayland #160

Open renyuneyun opened 2 years ago

renyuneyun commented 2 years ago

I'm encountering this error while trying to display QR code for an OTP resource:

X connection to :1 broken (explicit kill or server shutdown).
XIO:  fatal IO error 2 (no such file or directory) on X server ":1"
      after 2818 requests (1222 known processed) with 10 events remaining.

The command I used is: pass otp uri -q SOME-PASS-RESOURCE

I'm on Wayland, but the error is about X11. So I presume this is because pass-otp does not correctly identify Wayland. It used to work on X11, but I didn't try it for a while.

innir commented 2 years ago

Works for me on Wayland (Debian testing). [I have Xwayland runnning though.]