Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

GPG2 not found

#952

It seems MM is only looking for gpg2 in the following path:

/usr/local/MacGPG2/bin/gpg2

however for those of us not using MacGPG2 and using brew to install gpg2 the path is:

/usr/local/bin/gpg2

I can create a symbolic link to force MM to look in the right place but it would be better to be able to type in the path manually in the MM preferences dialog.

Any chance of this Benney??

Thanks, Art

Reported by FlyboyArt · November 2nd, 2014 @ 07:25 AM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to accepted

    I think it's possible already (I forgot the details, but it's a feature which currently does not work well, because it has no GUI), but it's not really important since currently you have to use the MacGPG2 version. MailMate relies on the GUI provided via their version of gpg2. Otherwise MailMate cannot ask for any passwords needed to access keys.

    I can track this as a request for allowing alternative gpg2 installs.

    November 2nd, 2014 @ 02:32 PM

  2. Johan Bergström
    Johan Bergström

    If people are using the cli tools (for instance from homebrew), wouldn't assuming gpg-agent also be a pretty good standpoint?

    February 19th, 2015 @ 10:52 PM

  3. benny
    benny

    @Johan: MailMate still has no GUI itself to ask for passwords. I'm pretty sure it'll only work with MacGPG2. I don't think the “homebrew” variant can handle that. It's not their fault though. Ideally, MailMate really should not rely on MacGPG2.

    February 24th, 2015 @ 12:09 PM

  4. Johan Bergström
    Johan Bergström

    @benny: I recall most gpg2-tools using pinentry? Could mailmate spawn that as an alternate input method if using homebrew/similar binaries?

    March 23rd, 2015 @ 03:55 AM

  5. Christian
    Christian

    I can confirm that pinentry (i.e. the password prompt in GPGtools) works with gpg2 installed through homebrew. GPG Tools itself also works without installing MacGPG but with GPG2 installed through homebrew: https://gpgtools.tenderapp.com/discussions/problems/19119-gpgtools-....

    It would indeed be nice if Mailmate could correctly handle interaction with gpg2 installed directly through homebrew. Assuming it's just a matter of trying /usr/local/bin/gpg instead of only /usr/local/MacGPG2/bin/gpg2.

    December 18th, 2017 @ 10:21 AM

  6. Christian
    Christian

    In addition to "/usr/local/MacGPG2/bin/gpg2", this might be a good starting point for detecting another GPG library:
    "gpg2", "/bin/gpg2", "/usr/bin/gpg2", "/usr/local/bin/gpg2", "gpg", "/bin/gpg", "/usr/bin/gpg", "/usr/local/bin/gpg".

    January 3rd, 2018 @ 12:24 PM

  7. benny
    benny

    @Christian: Thanks for the details. I'll note, again, to make alternative installs more easily accessible. (I would probably be hesitant with respect to automatically looking through a lot of locations though.)

    January 8th, 2018 @ 02:24 PM

  8. benny
    benny
    • State changed from accepted to fixcommitted

    I realized GPGTools (now named GPG Suite), gpg-suite-no-mail (brew package) and gpg (brew package) place a symlink at /usr/local/bin/gpg. I've changed this to be default in MailMate since this should make it work for most MailMate users and maybe even other alternatives.

    This is in the next update of MailMate. The documentation is also going to be updated.

    (At the same time I've improved the debug output a bit to make it easier to debug issues when signing emails.)

    February 7th, 2019 @ 12:09 PM

  9. benny
    benny
    • State changed from fixcommitted to fixreleased

    May 27th, 2019 @ 01:05 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.