Skip to content

gpg not found on macOS #575

Closed
Closed
@kenji21

Description

@kenji21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions