Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1900395 - Evolution Flatpak unable to execute pinentry
Summary: Evolution Flatpak unable to execute pinentry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: evolution
Version: 33
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Crha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-22 17:56 UTC by Rasmus Thomsen
Modified: 2020-11-28 02:41 UTC (History)
6 users (show)

Fixed In Version: evolution-3.38.3-1 evolution-master-3320201123103523.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-23 10:43:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rasmus Thomsen 2020-11-22 17:56:52 UTC
Description of problem:

When trying to send GPG signed emails with the org.gnome.Evolution flatpak from Fedora the following error message occurs:


> gpg: Writing after '-',
> gpg: Authentication not successful: No pin-entry,
> gpg: signing failed: No pin-entry.


It works with the Flathub version and it seems like they had a similiar problem:
https://github.com/flathub/org.gnome.Evolution/issues/12

Version-Release number of selected component (if applicable): Evolution 3.38.2


How reproducible: Always


Steps to Reproduce:
1. Install Evolution
2. Setup GPG signing in the settings
3. Try to send a GPG signed email

Actual results:
The already mentioned error message occurs.

Expected results:
Pinentry would ask for the password of the GPG key and then Evolution would sign the email.

Comment 1 Milan Crha 2020-11-23 08:13:09 UTC
Thanks for a bug report. I see Evolution tries to run the gpg-agent [1] on its start, but the gpg-agent is not built, neither evolution depends on it [2]. I'll try to add it, to see whether it'll help.

[1] https://src.fedoraproject.org/rpms/evolution/blob/master/f/flatpak-evolution-wrapper.sh.in#_10
[2] https://src.fedoraproject.org/flatpaks/evolution/blob/master/f/evolution.yaml#_31

Comment 2 Milan Crha 2020-11-23 10:43:03 UTC
I found the problem. The flatpak wrapper is shared with other Flatpak builds (the one in Flathub and the local build), but the others build also the pinentry, thus the gpg-agent needs to be told where it should look for it. The Fedora Flatpak used a package, which installs the pinentry into the correct place, thus I removed the gpg-agent invocation from the wrapper script.

A workaround is to edit (as root) the file:

   /var/lib/flatpak/app/org.gnome.Evolution/current/active/files/bin/evolution

and remove from there the two lines containing "gpg-agent" (quotes for clarity only).

Comment 3 Fedora Update System 2020-11-24 11:20:23 UTC
FEDORA-FLATPAK-2020-f9b8ca1880 has been submitted as an update to Fedora 33 Flatpaks. https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2020-f9b8ca1880

Comment 4 Fedora Update System 2020-11-25 02:22:15 UTC
FEDORA-FLATPAK-2020-f9b8ca1880 has been pushed to the Fedora 33 Flatpaks testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-FLATPAK-2020-f9b8ca1880

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Rasmus Thomsen 2020-11-25 19:20:54 UTC
The new version works for me, thanks a lot for the quick fix!

Comment 6 Fedora Update System 2020-11-28 02:41:57 UTC
FEDORA-FLATPAK-2020-f9b8ca1880 has been pushed to the Fedora 33 Flatpaks stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.