This way we're only choosing a default in one place.
---
notmuch-config.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/notmuch-config.c b/notmuch-config.c
index e5d42a0..9e4601a 100644
--- a/notmuch-config.c
+++ b/notmuch-config.c
@@ -417,9 +417,8 @@ notmuch_config_open (void *ctx,
g_error_free (error);
}
- if (notmuch_config_get_crypto_gpg_path (config) == NULL) {
- notmuch_config_set_crypto_gpg_path (config, "gpg");
- }
+ if (notmuch_config_get_crypto_gpg_path (config) == NULL)
+ notmuch_config_set_crypto_gpg_path (config,
_notmuch_crypto_get_gpg_path (NULL));
/* Whenever we know of configuration sections that don't appear in
* the configuration file, we add some comments to help the user
--
2.8.1
_______________________________________________
notmuch mailing list
[email protected]
https://notmuchmail.org/mailman/listinfo/notmuch