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

gpg not found on macOS #575

Closed
kenji21 opened this issue Oct 21, 2021 · 1 comment
Closed

gpg not found on macOS #575

kenji21 opened this issue Oct 21, 2021 · 1 comment
Labels

Comments

@kenji21
Copy link
Contributor

kenji21 commented Oct 21, 2021

Describe the bug
QtPass shows:
/usr/local/bin/pass: line 388: gpg: command not found

To Reproduce
Steps to reproduce the behavior:

  1. Try to show a password

Expected behavior
no error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS/Distribution: macOS 11
  • Version 1.3.2

Additional context

QtPass tries to execute:

bash /usr/local/bin/pass show some/password

but PATH injected is :

PATH=/usr/bin:/bin:/usr/sbin:/sbin

as gpg binary is in /usr/local/bin/, it is not found since pass command define it:

GPG="gpg"

since 2014

Workaround by adding PATH=/usr/local/bin/:$PATH on top of the pass command

But I assume env is patched here:
https://github.com/IJHack/QtPass/blob/master/src/pass.cpp#L51

but never injected within Executor instance

@kenji21 kenji21 added the bug label Oct 21, 2021
@kenji21
Copy link
Contributor Author

kenji21 commented Oct 21, 2021

works on current master 89e759b

@kenji21 kenji21 closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant