From 7351ef32ce7c04d20ee32fc9b645a1931b3b0aba Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 19 Apr 2023 09:09:20 +0200 Subject: [PATCH] core: Support the new macOS Homebrew location. * src/posix-util.c (find_executable): Extend the path. -- GnuPG-bug-id: 6440 --- src/posix-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);