flathub / flathub/org.gnu.emacs

Using gpg from Emacs

Open
#75 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
18
Forks
20
Avg merge
23h 32m
Merged PRs (30d)
1

Description

Since Emacs 28 has [a bug](https://emacs.stackexchange.com/questions/77008/emacs-28-crashing-when-using-triple-quotes-for-docstrings?newreg=9068ce6d62dc457a861dd48e9aaaba8a) that affects me, I'm trying to use Emacs 29.3 flatpak on Debian 12. Debian 12 has Flatpak 1.14.4. I'm stuck a little, because I can't sign my commit messages, which is a requirement in some of the projects that I work on.

When I try to do git commits using magit from Emacs flatpak, I get this error message:

```
error: gpg failed to sign the data:
gpg: WARNING: server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
[GNUPG:] WARNING server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
gpg: problem with fast path key listing: IPC parameter error - ignored
[GNUPG:] KEY_CONSIDERED 22D9BFBA256B7BFA7B16187C0C6DA6A29D5F02BA 2
[GNUPG:] BEGIN_SIGNING H10
[GNUPG:] PINENTRY_LAUNCHED 740866 gnome3 1.2.1 - dumb :0 - 1000/1000 -
gpg: signing failed: pinentry error
[GNUPG:] FAILURE sign 83886166
gpg: signing failed: pinentry error

fatal: failed to write commit object
```

Another problem: my `(setq auth-sources '("~/.authinfo.gpg"))` line also do not work.

```
Error while decrypting with "/usr/bin/gpg":

gpg: encrypted with rsa4096 key, ID 0x33E4FE3E31593C6C, created 2015-04-22
"Sajith "
gpg: WARNING: server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: using "0x0C6DA6A29D5F02BA" as default secret key for signing
gpg: problem with fast path key listing: IPC parameter error - ignored
gpg: public key decryption failed: pinentry error
gpg: decryption failed: pinentry error
```

I don't quite understand this. It seems to me that flatpak Emacs ships its own gpg, which is newer than what's on Debian 12. Can't the gpg in Emacs flatpak talk to its own gpg-agent then?

How can I make this work?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.