Page MenuHome GnuPG

Kleopatra / QGPGME: Use --no-auto-check-trustdb for initial keylisting
Closed, ResolvedPublic

Description

To have a more reliable user experience when starting Kleopatra we should disable auto-check-trustdb on the initial listallkeysjob. Similar to gpgme_set_offline (resp. Context::setOffline) that we do for the initial keylisting to disable CRL checks.

With 10 keys this already takes ~200ms on my system.

Event Timeline

aheinecke created this task.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ikloecker edited projects, added gpgme; removed gnupg.
ikloecker changed the task status from Open to Testing.Nov 4 2022, 11:08 AM
ikloecker removed ikloecker as the assignee of this task.
ikloecker moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
ikloecker added a subscriber: ikloecker.

ready for testing

aheinecke claimed this task.
aheinecke added a subscriber: ebo.

Since @ebo did not really know how to test I just checked that it is passed to gpg to resolve this issue.

GPGME_DEBUG=9 kleopatra 2>&1 | grep "no-auto-check"
2023-10-16 13:03:36 gpgme[19781.4d82] gpgme_set_ctx_flag: call: ctx=0x0000000001814080 name='no-auto-check-trustdb' value='1'
2023-10-16 13:03:36 gpgme[19781.4d83] gpgme_set_ctx_flag: call: ctx=0x0000000001817710 name='no-auto-check-trustdb' value='1'
2023-10-16 13:03:36 gpgme[19781.4d82]   _gpgme_io_spawn: check: argv[ 2] = --no-auto-check-trustdb
ebo moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Nov 15 2023, 11:06 AM