GPG KWallet is suppose to ask for password once at the login. Even if KWallet closes gpg could open it up for user all without asking any password as gpg is always open. On my Fedora 20 KDE box, KWallet constantly asks for password. I am not sure what triggers the request for password as password dialog is not very descriptive. I suspect Network Manager or Chrome are the two culprits here. Here is an excerpt from Rusu's blog: IMPORTANT NOTE: the passphrase dialog only shows once. Even if the wallet is closed after initial open, subsequent opening will occur silently during the same KDE session! That’s great news for those annoyed by the kwallet password prompt in the middle of the KDE session. http://www.rusu.info/wp/?p=248 Reproducible: Always Steps to Reproduce: 1. Create a GPG backed KWallet 2. Login to system 3. use your system for example. You will be regularly asked for gpg passphrase Actual Results: System regularly requests GPG passphrase Expected Results: System should only request GPG paraphrase once at system login. GPG key here is created by Kgpg for trying out this gpg backed Kwallet. Setup is completely default.
I suppose gpg-agent is not launched. Could you please install gpg-agent if not already present on your system, then execute this in your favorite terminal: cat 'eval `gpg-agent --daemon`' > ~/.kde4/env/gpg-agent.sh chmod +x ~/.kde4/env/gpg-agent.sh Then log-off and log-on again. Can you confirm this fixes it? And BTW, google-chrome integrates with kwallet, triggering kwallet password upon launch.
As far as I can tell gpg-agent was already running. I didn't have .kde4 folder but I created one as recommended by you along with the file. [donnie@fedora ~]$ ps aux | grep gpg-agent donnie 1456 0.0 0.0 121376 824 ? Ss 14:24 0:00 /usr/bin/gpg-agent -s --daemon --write-env-file /run/user/1000/.gpg-agent-info donnie 30225 0.0 0.0 112676 920 pts/1 S+ 23:30 0:00 grep --color=auto gpg-agent [donnie@fedora ~]$ cat /run/user/1000/.gpg-agent-info GPG_AGENT_INFO=/home/donnie/.gnupg/S.gpg-agent:1456:1 The result is that gpg key does ask for password several times in a session. NetworkManager will always ask for gpg-key password after resuming from suspend. Chrome tends to ask for gpg-key password whenever I am logging into any website. If it matters I created this test gpg key using Kgpg. Kgpg didn't have "use gpg-agent" enabled initially which I have done now but no luck so far.
Rusu, Are you sure gpg keys remain unlocked for the whole session? I am no gpg guru but this caught my eye about gpg-agent. --default-cache-ttl n Set the time a cache entry is valid to n seconds. The default is 600 seconds. That means passphrase cache will be removed every 10 minutes.
Also see --max-cache-ttl n Set the maximum time a cache entry is valid to n seconds. After this time a cache entry will be expired even if it has been accessed recently or has been set using gpg-preset-passphrase. The default is 2 hours (7200 seconds). Source: https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html#Agent-Options
Ok, I see. However, is your system using these settings? As on my system, which does not use these, I have no problems. The keys remain unlocked for the duration of the session.
Unless your distribution is doing some magic I am not sure what it happening. 1. How have you created the GPG? I used Kgpg. 2. How do you run gpg-agent? Kgpg has use gpg-agent option which I enabled. It created a ~/.gnupg/gpg.conf with use-agent in the file. 3. If possible could you post output of following files: ~/.gnupg/gpg.conf ~/.gnupg/gpg-agent.conf I might create a thread in Fedora and Arch forums to see what other folk's experiences are. Thanks.
Valentin, you also have a GPG backed kwallet? and you don't have this problem? my situation seems very similar to Sudhir, my gpg-agent is running. and chrome always trigger kwallet to ask for my GPG password when using firefox, things remains silent .... very annoying, as i dont even use kwallet for chrome, only for kmail and other kde apps mathieu 2448 0.0 0.0 170804 928 ? Ss 09:53 0:00 gpg-agent --homedir /home/mathieu/.gnupg --use-standard-socket --daemon thanks
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.
(In reply to Justin Zobel from comment #8) > Thank you for the bug report. > > As this report hasn't seen any changes in 5 years or more, we ask if you can > please confirm that the issue still persists. > > If this bug is no longer persisting or relevant please change the status to > resolved. I can confirm this does exist. Chromium triggers the OpenGPG prompt, but for instance the KDE Wallet manager or Firefox does not.