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

Description

With a redirected AppData folder [ https://support.microsoft.com/de-at/help/242557/registry-settings-for-folder-redirection-in-windows ] 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: https://bugs.kde.org/show_bug.cgi?id=389919 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.

aheinecke added a project: gpg4win.

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.

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.

aheinecke closed this task as Resolved.Apr 12 2018, 10:01 AM

New version of GnuPG is now packaged.