Patching GnuPG to skip sending DBUS_SESSION_BUS_ADDRESS in Flatpak

bbhtt bbhtt.zn0i8 at gmail.com
Thu Jun 12 16:53:37 CEST 2025


Hi,

I couldn't figure out how to get an account on `dev.gnupg.org`
so I'm posting this to the list.

Recently, we (the maintainers of the Flatpak runtime - Freedesktop SDK)
patched GnuPG to skip sending `DBUS_SESSION_BUS_ADDRESS` from inside
the Flatpak sandbox (inside the sandbox GnuPG comes from the
Freedesktop SDK runtime) to the agent running outside on host.

The commit message of the patch has the details but I was recently
made aware that a previous upstream bug [1] was also filed by
someone else to this affect. So I assume GnuPG upstream is
aware of the problem.

Please feel free to take the patch [2] upstream if wanted.

[1]: https://dev.gnupg.org/T7522
[2]: 
https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/raw/1dfaba8cbf9facd0a3d5f1ac265bce09917db9ae/patches/gnupg/0001-session-env-Skip-DBUS_SESSION_BUS_ADDRESS-inside-Fla.patch

- bbhtt

https://bbhtt.space




More information about the Gnupg-users mailing list