IJHack / QtPass

QtPass is a multi-platform GUI for pass, the standard unix password manager.
https://qtpass.org/
GNU General Public License v3.0
1.01k stars 159 forks source link

qtpass is unable to decrypt passwords #675

Closed balki closed 9 months ago

balki commented 9 months ago

Describe the bug Once I decrypt the password in command line using pass show pass_name, then qtpass is able to show those passwords for some time.

To Reproduce Steps to reproduce the behavior:

  1. Open 'qtpass'
  2. Click on 'on a password name'
  3. See error in screenshot

Expected behavior Passwords shown

Screenshots Screenshot

Desktop (please complete the following information):

Additional context The following optional dependencies for pass are installed. Should I install anything else as well?

git: for Git support [installed] dmenu: for passmenu xdotool: to type passwords with passmenu [installed] qrencode: for QR code support vim-plugin-runtime: for redact_pass.vim [installed] xclip: for clipboard support on X11 wl-clipboard: for clipboard support on Wayland pinentry [installed] gtk2: pinentry backend (gtk2) gcr: pinentry backend (gnome3) [installed] qt5-x11extras: pinentry backend (qt) kwayland5: pinentry backend (qt)

balki commented 9 months ago

The default pinentry script does not seem to check for gnome3 version. explicitly adding gnome3 resolved the issue

❯ cat /usr/bin/pinentry
#!/bin/sh

# user-defined pre-exec hook
test -r "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec &&
    . "${XDG_CONFIG_HOME:-$HOME/.config}"/pinentry/preexec

# site-defined pre-exec hook
test -r /etc/pinentry/preexec &&
    . /etc/pinentry/preexec
+ exec /usr/bin/pinentry-gnome3 "$@"
test -e /usr/lib/libgtk-x11-2.0.so.0 &&
    exec /usr/bin/pinentry-gtk-2 "$@"

exec /usr/bin/pinentry-curses "$@"
balki commented 9 months ago

Right way to fix this issue in archlinux is to uncomment gnome3 line in /etc/pinentry/preexec or add similar file in home folder