core: Support the new macOS Homebrew location.

* src/posix-util.c (find_executable): Extend the path.
--

GnuPG-bug-id: 6440
This commit is contained in:
Werner Koch 2023-04-19 09:09:20 +02:00
parent a14155d2c1
commit 7351ef32ce
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -144,7 +144,8 @@ find_executable (const char *pgm)
/* On apple, especially when started through gpgme-json via /* On apple, especially when started through gpgme-json via
the browser interface we should look into some additional the browser interface we should look into some additional
fallback paths. */ fallback paths. */
const char *additional_path = "/usr/local/bin:/usr/local/MacGPG2/bin"; const char *additional_path
= "/usr/local/bin:/usr/local/MacGPG2/bin:/opt/homebrew/bin";
if (!ret) if (!ret)
{ {
ret = walk_path_str (additional_path, pgm); ret = walk_path_str (additional_path, pgm);