Using GPG keys on Ublue Aurora (or Fedora Kinoite) and finding your password isn’t saving? This can be a frustrating issue, but thankfully, the fix is simple. It boils down to a single environment variable that needs to be set.
By default, Plasma on these distributions doesn’t automatically integrate with the KDE wallet for GPG operations. This means your passphrase isn’t being stored securely, and you’ll be prompted repeatedly.
Here’s the solution:
Open a terminal.
Create (or edit) the
use-pinentry.sh
file:nano ~/.config/plasma-workspace/env/use-pinentry.sh
Add the following line to the file:
export PINENTRY_KDE_USE_WALLET=1
Save the file and close the editor.
Log out and back in (or reboot) for the changes to take effect.
This will tell your system to use the KDE wallet for GPG passphrase storage. Now, when you use your GPG key, the passphrase should be saved securely, and you won’t have to enter it every time.
This small tweak can save you a lot of time and hassle. If you’re also looking to use your GPG key to sign your Git commits, which adds an extra layer of security and authenticity, check out this helpful guide from GitHub: Telling Git about your signing key. This will walk you through the process of configuring Git to use your GPG key for signing.
Hopefully, this helps you get your GPG keys working smoothly on Ublue Aurora/Fedora Kinoite!
Source: https://lists.gnupg.org/pipermail/gnupg-users/2024-October/067377.html