Page MenuHome GnuPG

Kleopatra does not use the correct gpgconf
Testing, HighPublic

Description

Kleopatra has a Tools->GnuPG_Command-_Line tool which by default uses "gpgconf -X". This is an important for supporting users.

Due to the recent changes to allow installing several GnuPG versions this does not work correctly because it uses the gpgconf from $PATH. However, it should use the gpgconf as also used by Kleopatra (i.e. gpgme). Otherwise wrong information may be shown depending on the order of installed GnuPG versions (due to the order in $PATH).

Event Timeline

werner created this task.
werner created this object with edit policy "Contributor (Project)".
ikloecker changed the task status from Open to Testing.Feb 4 2026, 2:42 PM

Fixed. Kleopatra now looks for programs given as plain name (i.e. without any path) first in the GnuPG installation path (as reported by gpgme) and then next to the kleopatra executable. If the program is found at neither location it is run as-is.

Backported for VSD 3.4

ikloecker mentioned this in Unknown Object (Maniphest Task).Feb 9 2026, 8:58 AM
timegrid added a subscriber: timegrid.

Looks good to me on parallel install of

  1. gpg4win-5.0.2-beta2 @ win11
  2. vsd-4.0.0-beta1203 @ win11

Output

  • gpg4win-5.0.2-beta2
# gpgconf -X invoked 2026-03-03 11:41:46                            -*- org -*-

* General information
** Versions
  GnuPG 2.5.18 (1b8362889a522bbcfeb80ef3af61218db216f62b)
  MingW32
  C:\Program Files\GnuPG\bin\gpgconf.exe
  [VERSION file not found]
  Windows 10.0 build 26200
  Libgcrypt 1.12.1
  GpgRT 1.59
  Codepages: 65001 1252 850


** Directories
#+begin_example
  sysconfdir:C%3a\ProgramData\GNU\etc\gnupg
  bindir:C%3a\Program Files\GnuPG\bin
  libexecdir:C%3a\Program Files\GnuPG\bin
  libdir:C%3a\Program Files\GnuPG\lib\gnupg
  datadir:C%3a\Program Files\GnuPG\share\gnupg
  localedir:C%3a\Program Files\GnuPG\share\locale
  socketdir:C%3a\Users\g10\AppData\Local\gnupg
  dirmngr-socket:C%3a\Users\g10\AppData\Local\gnupg\S.dirmngr
  keyboxd-socket:C%3a\Users\g10\AppData\Local\gnupg\S.keyboxd
  agent-ssh-socket:C%3a\Users\g10\AppData\Local\gnupg\S.gpg-agent.ssh
  agent-extra-socket:C%3a\Users\g10\AppData\Local\gnupg\S.gpg-agent.extra
  agent-browser-socket:C%3a\Users\g10\AppData\Local\gnupg\S.gpg-agent.browser
  agent-socket:C%3a\Users\g10\AppData\Local\gnupg\S.gpg-agent
  homedir:C%3a\Users\g10\AppData\Roaming\gnupg
#+end_example
[...]
  • vsd-4.0.0-beta1203
# gpgconf -X invoked 2026-03-03 11:38:29                            -*- org -*-

* General information
** Versions
  GnuPG 2.5.18 (1b8362889a522bbcfeb80ef3af61218db216f62b)
  MingW32
  C:\Program Files\GnuPG VS-Desktop\GnuPG\bin\gpgconf.exe
  VS-Desktop-4.0.90.1203-Beta
  Windows 10.0 build 26200
  Libgcrypt 1.12.1
  GpgRT 1.59
  Codepages: 65001 1252 850


** Directories
#+begin_example
  sysconfdir:C%3a\ProgramData\GNU\etc\gnupg-vsd
  bindir:C%3a\Program Files\GnuPG VS-Desktop\GnuPG\bin
  libexecdir:C%3a\Program Files\GnuPG VS-Desktop\GnuPG\bin
  libdir:C%3a\Program Files\GnuPG VS-Desktop\GnuPG\lib\gnupg
  datadir:C%3a\Program Files\GnuPG VS-Desktop\GnuPG\share\gnupg
  localedir:C%3a\Program Files\GnuPG VS-Desktop\GnuPG\share\locale
  socketdir:C%3a\Users\g10\AppData\Local\gnupg-vsd
  dirmngr-socket:C%3a\Users\g10\AppData\Local\gnupg-vsd\S.dirmngr
  keyboxd-socket:C%3a\Users\g10\AppData\Local\gnupg-vsd\S.keyboxd
  agent-ssh-socket:C%3a\Users\g10\AppData\Local\gnupg-vsd\S.gpg-agent.ssh
  agent-extra-socket:C%3a\Users\g10\AppData\Local\gnupg-vsd\S.gpg-agent.extra
  agent-browser-socket:C%3a\Users\g10\AppData\Local\gnupg-vsd\S.gpg-agent.browser
  agent-socket:C%3a\Users\g10\AppData\Local\gnupg-vsd\S.gpg-agent
  homedir:C%3a\Users\g10\AppData\Roaming\gnupg-vsd
#+end_example
[...]
timegrid edited projects, added gpd5x (gpd-5.0.2); removed gpd5x.