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.03k stars 162 forks source link

QtPass 1.3.2 freezes on macOS 10.15.6 when trying to display password #544

Closed pbx closed 3 years ago

pbx commented 4 years ago

Versions:

To reproduce (on my machine at least : )

  1. Launch QtPass
  2. Under Configuration > Programs, choose "Use pass"
  3. Close configuration window
  4. Select an entry for display
  5. QtPass interface become non-responsive

Note: these steps result in a bash process running in the background taking a full core (i.e. 99.x% CPU)

Appearance of window in non-responsive state (entry name is displayed, but not content):

image

This version of QtPass works without issue on my Linux box.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

kenji21 commented 4 years ago

It's an issue with pass, you can reproduce it with:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin
/usr/local/bin/pass ls
/usr/local/bin/pass: line 350: /usr/local/bin/getopt: No such file or directory
# 100 % cpu
Killed: 9

To fix it (a fix has been posted on pass mailing list, but not yet merged it seems)

-GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || { which port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
+GETOPT="$({ test -x /usr/local/opt/gnu-getopt/bin/getopt && echo /usr/local/opt/gnu-getopt; } || brew --prefix gnu-getopt 2>/dev/null || { which port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
pbx commented 3 years ago

Thanks for the fix - that got around the problem for me. Unfortunately, to judge by the pass git repo at least, it looks like there hasn't been significant pass development activity in a couple years.

annejan commented 3 years ago

Pass development is going on on the mailinglist https://lists.zx2c4.com/pipermail/password-store/ But indeed very slow at the moment.

ChauhanT commented 1 year ago

Hi, I'm facing this on macos Ventura. Where do I have to make the suggested change? In my .zshrc ? QtPass seems to work with the option Native git/gpg but not with Use pass. However, with Native git/gpg I can't actually modify or store new passwords. In any case, I don't understand the difference between the two options. Any help would be awesome. I don't want to stop using pass :(