# Pinentry program not offering to save password

**URL:** <https://forum.endeavouros.com/t/pinentry-program-not-offering-to-save-password/60456>\
**Category:** Newbie\
**Created:** [September 16, 2024, 1:40pm UTC](https://forum.endeavouros.com/t/pinentry-program-not-offering-to-save-password/60456 "2024-09-16T13:40:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRDGH2821](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@MRDGH2821](https://forum.endeavouros.com/u/MRDGH2821)\
**Post date:** [September 16, 2024, 1:40pm UTC](https://forum.endeavouros.com/t/pinentry-program-not-offering-to-save-password/60456/1 "2024-09-16T13:40:35Z")

</div>

_Updating this post for clarity_

I have configured git commit signing, which relies on GPG.  
When I commit, gpg pinentry popup comes up but it doesn’t offer to save password (which it should).  
I changed the pinentry programs but still none of them offer to save password.  
Reinstalling pinentry didn’t help either.

Any solutions?

* * *

_Original Post_

I have KeepassXC installed with its Secret service enabled. But to enable it first, I had to install `kwalletmanager` and then disable KDE wallet from system settings.

Secret Service & KeepassXC is working as expected and I have seen Neo Chat use it to log into my Matrix account.

Now I have configured git to sign my commits. When committing, I see a GUI popup (pinentry-gnome3) asking for GPG password, with no kind of check box to save it in Secret Service. This is not what should be happening…

I have done same thing in KDE Neon & Fedora KDE Spin, in both the distros pinentry-gnome3 correctly queries secret service and I see no popups. This is the expected behaviour.

I have tried reinstalling pinentry program, even used other pinentry programs as listed by

```auto
pacman -Ql pinentry | grep -i /usr/bin/p

```

But none of them work as expected. Each one of them popup asking for password.

I have not tried `pinentry-git` because it is on v1.2 where as `pinentry` is v1.3 (as reported by `yay -sS pinentry`)

Any solutions?

---

<div class="post-metadata">

**Author:** ![MRDGH2821](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@MRDGH2821](https://forum.endeavouros.com/u/MRDGH2821)\
**Post date:** [October 14, 2024, 1:35pm UTC](https://forum.endeavouros.com/t/pinentry-program-not-offering-to-save-password/60456/2 "2024-10-14T13:35:41Z")

</div>

I asked at gnupg mailing list and here is the solution:  
[https://lists.gnupg.org/pipermail/gnupg-users/2024-October/067377.html](https://lists.gnupg.org/pipermail/gnupg-users/2024-October/067377.html)

So here is the solution summary:

Pinentry prorgam in KDE needs this line:

```auto
export PINENTRY_KDE_USE_WALLET=1

```

Which Should be put in a script located at:

```auto
$HOME/.config/plasma-workspace/env

```

For eg:

```auto
$HOME/.config/plasma-workspace/env/pinentry-kde-fix.sh

```

Only then pinentry will offer to save password.  
Do **not** put inside `~/.bashrc` else it won’t work.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [October 16, 2024, 1:35pm UTC](https://forum.endeavouros.com/t/pinentry-program-not-offering-to-save-password/60456/3 "2024-10-16T13:35:57Z")

</div>

Closed on October 16, 2024, 1:35pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
