#952 new
FlyboyArt

GPG2 not found

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

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

Comments and changes to this ticket

  • benny

    benny November 2nd, 2014 @ 02:32 PM

    • 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.

  • Johan Bergström

    Johan Bergström February 19th, 2015 @ 10:52 PM

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

  • benny

    benny February 24th, 2015 @ 12:09 PM

    @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.

  • Johan Bergström

    Johan Bergström March 23rd, 2015 @ 03:55 AM

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

  • Christian

    Christian December 18th, 2017 @ 10:21 AM

    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.

  • Christian

    Christian January 3rd, 2018 @ 12:24 PM

    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".

  • benny

    benny January 8th, 2018 @ 02:24 PM

    @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.)

  • benny

    benny February 7th, 2019 @ 12:09 PM

    • 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.)

  • benny

    benny May 27th, 2019 @ 01:05 PM

    • State changed from “fixcommitted” to “fixreleased”

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages