Page MenuHome GnuPG

Kleopatra: Make the registry path for the GnuPG install directory customizable
Testing, NormalPublic

Description

Currently, the registry path and registry key is hard-coded to Software\\GnuPG with key Install Directory in libkleo. For VSD/GPD this needs to be customizable.

for 64 bit VSD: Software\\GnuPG:VSD Install Directory
for 64 bit: Software\\GnuPG:Install Directory
for other (i.e. 32bit): Software\\Gpg4win:Install Directory

Event Timeline

ikloecker changed the task status from Open to Testing.Jul 31 2025, 4:21 PM

Kleopatra from VSD installations should now use gpgv from the GnuPG installed by VSD when verifying the signature of the VERSION file. GPD and Gpg4win installations both use gpgv from the GnuPG installed at the value of the registry key "Software\\GnuPG:Install Directory".

ikloecker mentioned this in Unknown Object (Maniphest Task).Aug 4 2025, 9:37 AM

This probably can only be tested with signed releases?

Note: If i set an invalid path in "Software\\GnuPG:Install Directory"

  • the gpgconf -X output does not change
  • the self-test Config File 'libkleopatrarc' fails with Error in archive definition tar: 'pack-command-openpgp' empty or not found

This probably can only be tested with signed releases?

Yes, this is customizable during the build. The registry path is burned into the executable. You need a VSD build to check that VSD uses a different registry path.

Note: If i set an invalid path in "Software\\GnuPG:Install Directory"

  • the gpgconf -X output does not change
  • the self-test Config File 'libkleopatrarc' fails with Error in archive definition tar: 'pack-command-openpgp' empty or not found

I'd say that's expected behavior. "Software\\GnuPG:Install Directory" allows Kleopatra to find executables that come with GnuPG (which is installed by but separately from Gpg4win in a different location). gpgconf (and other components of GnuPG) simply look next to their own location and don't need to consult a registry path.