Closed
Description
Describe the bug
QtPass shows:
/usr/local/bin/pass: line 388: gpg: command not found
To Reproduce
Steps to reproduce the behavior:
- 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