summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-04-19 09:09:20 +0200
committerWerner Koch <wk@gnupg.org>2023-04-20 13:35:50 +0200
commit7351ef32ce7c04d20ee32fc9b645a1931b3b0aba (patch)
tree36e6687e49185f48701327f208a3112c6880dba5
parenta14155d2c1b2ddc167dbf278faf1d6b469575492 (diff)
downloadgpgme-7351ef32ce7c04d20ee32fc9b645a1931b3b0aba.tar.gz
core: Support the new macOS Homebrew location.
* src/posix-util.c (find_executable): Extend the path. -- GnuPG-bug-id: 6440
-rw-r--r--src/posix-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/posix-util.c b/src/posix-util.c
index 2d0ce329..09c25545 100644
--- a/src/posix-util.c
+++ b/src/posix-util.c
@@ -144,7 +144,8 @@ find_executable (const char *pgm)
/* On apple, especially when started through gpgme-json via
the browser interface we should look into some additional
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)
{
ret = walk_path_str (additional_path, pgm);