Page MenuHome GnuPG

Kleopatra: Very unstable when AppData is redirected to UNC Path
Closed, ResolvedPublic


With a redirected AppData folder [ ] I could reproduce crashes of Kleopatra and a "General Error" when trying to generate a key with Kleopatra.

As far as I can tell GnuPG itself works fine and I was able to generate a key there.

This was also reported in BKO: and might explain other reports that Key Generation fails with General Error.

Priority High as this appears to be a common setup in Server environments.



Event Timeline

The underlying problem is that gpgconf does not work in such an environment.

C:\Users\aheinecke>gpgconf --list-options gpg
gpgconf: Option gpgconf-gpg.conf, needed by backend GnuPG, is not absolute
gpgconf: fatal error (exit status 1)

This results in some problems for Kleopatra e.g. With recent versions it reads default_pubkey_algo and if there is none the key generation wizard did not handle it. This caused the general error when generating keys.

With the attached commit gpgconf works. Key generation in Kleopatra also handles the case now that gpgconf does not work.

What remains here is that Kleopatra does not write any config as KConfig does not appear to handle UNC paths properly.

aheinecke changed the task status from Open to Testing.Mar 1 2018, 8:39 AM
aheinecke added a parent task: T3742: Gpg4win 3.1.0.

rW981a6fae5355 Fixes the problem with Kleopatra's config files.

aheinecke changed the task status from Testing to Open.Mar 8 2018, 8:27 AM

Leaving this open until we have a new version of GnuPG in the installer. While Kleopatra should no longer crash it won't properly work without the patch to GnuPG.

New version of GnuPG is now packaged.