Betterbird / thunderbird-patches

Betterbird is a fork of Mozilla Thunderbird. Here are the patches that provide all the goodness.
Other
424 stars 18 forks source link

No gpg-agent pinentry with flatpak installation #314

Closed 32u-nd closed 4 weeks ago

32u-nd commented 4 weeks ago

This is an issue/question related to the flatpak installation of Betterbird.

I installed eu.betterbird.Betterbird version 115.12.0-bb29 and configured it to use my external gpg-keys. However, I cannot save encrypted drafts and cannot send encrypted mails. There is no pinentry popup. The journal gives:

Jun 18 20:36:53 mylaptop gpg-agent[21890]: failed to connect to user session D-Bus (1): Could not connect: No such file or directoryFailed to lookup password for key n/FBB4990F0A877482841F29922741AFAD7725AD80 with secret service: Could not connect: No such file or directory

OS: Debian GNU/Linux 12 (bookworm) x86_64 Host: Framework Laptop 16 (AMD Ryzen 7040 Series) Kernel 6.1.0-21-amd64 DE GNOME 43.9

I don’t own the key shown in the journal. I have installed Betterbird directly in parallel. This regular installation gives the pinentry popup and all is fine.

Of course, I have checked the gpg-settings in the properties to allow connecting to my gpg keys 😉; the flatpak installation and the rugular one have the same settings.

How can I correctly integrate the gpg-agent in my flatpak installation?

Any help/hint is greatly appreciated. BR, Andreas

Betterbird commented 4 weeks ago

No idea, seems like a FlatPak sandboxing issue. FlatPak is mentioned here:

https://github.com/flathub/eu.betterbird.Betterbird/blob/master/README.md

Otherwise ask the FlatPak maintainer @mfschumann.

32u-nd commented 4 weeks ago

OK got it. RTFM :laughing:

flatpak override --user --filesystem=home eu.betterbird.Betterbird

So the sandbox can access my home directory including my gpg keys. This will also simplify attaching files from my home directory. Thanks anyway.