[Gpg4win-devel] [gpg4win-Bugs][132] GPGme doesn't find GPG.EXE

gpg4win-bugs@wald.intevation.org gpg4win-bugs at wald.intevation.org
Tue Jun 13 18:41:37 CEST 2006


Bugs item #132, was opened at 2006-06-13 18:41
You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=126&aid=132&group_id=11
Or by replying to this e-mail entering your response between the following markers: 
#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+
(enter your response here)
#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+

Status: Open
Priority: 3
Submitted By: Maddes B. (maddes_b)
Assigned to: Nobody (None)
Summary: GPGme doesn't find GPG.EXE 
Resolution: None
Severity: major
Version: 1.0.2
Component: None
Operating System: Windows XP
Product: None
Hardware: All
URL: http://wald.intevation.org/forum/forum.php?thread_id=94&forum_id=21


Initial Comment:
The code of "_gpgme_get_gpg_path()" in "w32-util.c" searches for a GPG regkey named "gpgProgram" in "Software\GNU\GnuPG" of HKCU and HKLM, but this key is no more available since GnuPG 1.41, so GPGme defaults to "%program_files%\GNU\GNUPG".
So if a user doesn't install into the default directory then GPG.EXE will not be found.

This affects GPGol, and shoudl also affect all other programs of GPG4win which use GPGme.

Reproduction:
Clean system of GnuPG (remove all reg keys, HKLM + HKCU), clean install of GnuPG 1.4.3 in *non-default* path (e.g. D:\GnuPG), let GPGme try to find GPG.EXE, e.g. via GPG4win's GPGol, etc.

Possible code solutions:
a) GPGme should try the regkey "Install Directory" plus "\bin" to find GPG.exe
b) Call "gpg.exe" without any path, as the correct GPG folder should be always in a user's path, isn't it?
c) Maybe different ways to determine the path depending on the version
d) Does another function provide this info similar to the GPG name (gpg->filename)?

Regards
Matthias Bücher


----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=126&aid=132&group_id=11



More information about the Gpg4win-devel mailing list