https://bugs.kde.org/show_bug.cgi?id=458085

--- Comment #40 from michaelk83 <mk.mat...@gmail.com> ---
(In reply to michaelk83 from comment #39)
> Option A (`no-allow-external-cache`) is the correct solution IMO
@Nicolas Fella, the patch would be something like the following (pseudo-code,
in backendpersisthandler.cpp line 625)
https://invent.kde.org/frameworks/kwallet/-/blob/master/src/runtime/kwalletd/backend/backendpersisthandler.cpp#L625
> + original = run("/bin/sh -c 'gpgconf --list-options gpg-agent | grep 
> no-allow-external-cache | cut -d: -f1-3'")->getstdout();
> + if (!original) {
> +     original = "no-allow-external-cache:16:";
> + }
> + run("/bin/sh -c 'echo no-allow-external-cache:8:1 | gpgconf 
> --change-options gpg-agent'");
>   GpgME::DecryptionResult res = ctx->decrypt(encryptedData, decryptedData);
> + run("/bin/sh -c 'echo " + original + " | gpgconf --change-options 
> gpg-agent'");

As I mentioned earlier, I don't have the environment set up to make a proper
patch and test it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to