Page MenuHome GnuPG

Kleopatra: if a keylisting fails, display error message instead of welcome page (=empty keyring)
Open, NormalPublic

Description

At the moment a keylisting may fail on the command line with an error but this error is not shown in Kleopatra.
Kleopatra does in that case the same as when no certificates are in the keyring and displays the welcome screen.
Instead an error message should be displayed.

The support case where this came up was a corrupt trustdb. In this case "gpg -k" on the cli returns "Error: The trustdb is corrupted." and helpful instructions how this can be fixed.

Details

Version
vsd 3.2.3

Event Timeline

ebo triaged this task as Normal priority.Oct 9 2024, 3:56 PM
ebo created this task.

If the keylisting (of OpenPGP and S/MIME certificates; technically, that's two independent keylistings) fails without giving any results then it makes sense to show a error message instead of the welcome page.

Otherwise, we should probably use a KMessageWidget above the certificate list for displaying the error.