From fb3fe38d2831c29865b6e95b9319625a33875334 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 21 Mar 2024 15:41:17 +0100 Subject: common: Use a common gpgconf.ctl parser for Unix and Windows. * common/homedir.c (gpgconf_ctl): new struct. (string_is_true): New. (parse_gpgconf_ctl): New. Based on the former code in unix_rootdir. (check_portable_app): Use parse_gpgconf_ctl and the new struct. (unix_rootdir): Ditto. -- This is a unification of the gpgconf.ctl mechanism. For backward compatibility we need to keep the empty (or actually only comments) method as used formerly under Windows. Iff one really wants a portable application the new portable keyword should be used, though. Noet that the Windows portable stuff has not been tested for quite some time. --- doc/tools.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/tools.texi b/doc/tools.texi index 26c4c5f3d..ae960bdc9 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -1151,7 +1151,8 @@ More fields may be added in future to the output. Under Windows this file is used to install GnuPG as a portable application. An empty file named @file{gpgconf.ctl} is expected in - the same directory as the tool @file{gpgconf.exe}. The root of the + the same directory as the tool @file{gpgconf.exe} or the file must + have a keyword @code{portable} with the value true. The root of the installation is then that directory; or, if @file{gpgconf.exe} has been installed directly below a directory named @file{bin}, its parent directory. You also need to make sure that the following directories -- cgit v1.2.3