aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-10-26 10:10:57 +0000
committerWerner Koch <[email protected]>2022-10-26 10:10:57 +0000
commit1c9694f8d50b1236d2e4f2acbe23f972da36e437 (patch)
tree29133c6c07794eda364e9b198f433012ac520b25 /src/gpgme.c
parentpython: Fix configure generating setup.py. (diff)
downloadgpgme-1c9694f8d50b1236d2e4f2acbe23f972da36e437.tar.gz
gpgme-1c9694f8d50b1236d2e4f2acbe23f972da36e437.zip
core: New global flags "inst-type".
* src/gpgme.c (gpgme_set_global_flag): Add flag "inst-type". * src/w32-util.c (_gpgme_set_get_inst_type): New. (INST_TYPE_GPG4WIN_DIR): New. (INST_TYPE_GPGDESK_DIR): New. (_gpgme_get_gpgconf_path): Implement this flag. Replace fixed strings by the macros. * src/posix-util.c (_gpgme_set_get_inst_type): New dummy. -- This is intended for use by Kleopatra to reliable find the expected GnuPG installation.
Diffstat (limited to 'src/gpgme.c')
-rw-r--r--src/gpgme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index 2c5b51ea..ed15912a 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -79,6 +79,11 @@ gpgme_set_global_flag (const char *name, const char *value)
return _gpgme_set_default_gpgconf_name (value);
else if (!strcmp (name, "gpg-name"))
return _gpgme_set_default_gpg_name (value);
+ else if (!strcmp (name, "inst-type"))
+ {
+ _gpgme_set_get_inst_type (value);
+ return 0;
+ }
else if (!strcmp (name, "w32-inst-dir"))
return _gpgme_set_override_inst_dir (value);
else