Page MenuHome GnuPG

Kleopatra: Show error if a certification did not succeed, even if the cause is crash of background process
Open, LowPublic

Description

Noticed because of T7754:

Kleopatra in the case of certification shows a success message if no error is reported by gpg.
But if gpg crashes when you certify a key there is no error message.

So it would be better if Kleopatra gave an error if there is no success message from the background process.

Edit 2025-08-13:

We decided that gpg needs to emit a status message here for success, too.
gpgme should then look for that status message instead of only absence of error.

Details

Version
Gpg4win-5.0.0-beta350

Event Timeline

I had a quick look at the status messages that gpg emits. Unfortunately, gpg doesn't emit a status message after successfully signing a key. So, we may have to check whether the signed key really has a new certification to ensure that the operation succeeded. And we should make future version of gpg emit a success status.

But we emit a failure at the end of the gpg process; aren't we?

If an error occurs then we emit a failure. But if gpg crashes then gpgme just sees a broken pipe.

ebo added projects: gpgme, gnupg26.

We decided that gpg should emit a status message for success, too.
gpgme should then look for that status message instead of only absence of error.

ebo edited projects, added gnupg; removed gnupg26.