This is related to T3720 (wald report https://wald.intevation.org/forum/message.php?msg_id=5511&group_id=11 )
When executing Kleopatra with a GNUPGHOME of let's say "f:\" which is a drive with write permissions the selftest of Kleopatra passes but actions like generating a new key pair crash.