Tue Oct 20, 2020 3:34 am
I am using Kontact with an email account that uses GPG. Everytime I start my PC I have to enter the password which is very long. I do not want this. I believe that KDE can store this password in Kdewallet but it doesn't seem to work.
When I open Kontact and click on an email, I get a rather aggressive dialog box prompting me to enter the password to decrypt the email. At the bottom there is a checkbox:
"Save in password manager"
I check this box and enter the password. The password is accepted however the password is never stored in Kwallet.
I did some research and I believe that the dialog box that is being displayed here is called "pinentry-kwallet" and it is called from the gpg-agent daemon.
From this page man page:
http://manpages.ubuntu.com/manpages/xen ... let.1.html
it appears that this dialogue box should be capable of taking my GPG password and storing it in Kwallet as described here:
This never works however. If I check the box to save the password, I get this message in the journalctl:
When I open Kdewallet I can see that kontact is currently connected and authorized to access the wallet but it never saves the password.
I am migrating to KDE from Evolution on Gnome and I believe that Seahorse took care of this for me. I entered my GPG password once and remembered it which is what I want.
Can someone familiar with these systems confirm the Kontact has the ability to integrate with gpg-agent and store the entered password in Kdewallet? Is this a bug? Has anyone else experienced this?
Fri Oct 30, 2020 5:07 pm
If anyone finds this message after struggling countless hours like I did, I finally found the solution myself.
The key is that KDE is actually missing a component "pinentry-kwallet" which can be installed from the package "kwalletcli"
Once this is installed you can configure gpg-agent.conf with the following line:
Then when you enter your password the next time, you will have the option to store your password in kwallet.
Gnome has seahorse which takes care of this out of the box so anyone trying KDE may be frustrated and surprised that this doesn't work. Perhaps the KDE developers can fix this for the future.