summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-10-26 12:10:57 +0200
committerWerner Koch <wk@gnupg.org>2022-10-26 12:10:57 +0200
commit1c9694f8d50b1236d2e4f2acbe23f972da36e437 (patch)
tree29133c6c07794eda364e9b198f433012ac520b25 /doc
parentf1802682c3c8794edaca37966405bd1f070f5e01 (diff)
downloadgpgme-1c9694f8d50b1236d2e4f2acbe23f972da36e437.tar.gz
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 'doc')
-rw-r--r--doc/gpgme.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index a616e335..b707b93f 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -727,6 +727,13 @@ is not met, GPGME fails early instead of trying to use the existent
version. The given version must be a string with major, minor, and
micro number. Example: "2.1.0".
+@item inst-type
+The installation type is used to prefer a certain GnuPG installation.
+The value is interpreted as an integer: A value of 0 is ignored, a
+value of 1 indicates an installation scheme as used by Gpg4win, a
+value of 2 indicates an installation scheme as used by GnuPG Desktop
+on Windows. All other values are reserved.
+
@item w32-inst-dir
On Windows GPGME needs to know its installation directory to find its
spawn helper. This is in general no problem because a DLL has this