Detect default homedir via gpgconf.
* src/server.c (decode_percent_string): Move to .. * src/utils.c (decode_percent_string): here. * src/gpgmetools.c (gpa_start_simple_gpg_command): Add arg use_stderr and change all callers. (gpg_simple_stdio_cb): Implement the !use_stderr case. * src/get-path.c: Include string.h and gpa.h. (struct homedir_from_gpgconf_s): New. (homedir_from_gpgconf_parser): New. (homedir_from_gpgconf): New. (default_homedir): First try to detect via gpgconf.
It would be useful to equip GPGME with a function to parse the output
of "gpgconf --list-dir". Until then we need to go into some length to
read it.