Patching GnuPG to skip sending DBUS_SESSION_BUS_ADDRESS in Flatpak

Werner Koch wk at gnupg.org
Sat Jun 21 15:57:59 CEST 2025


On Wed, 18 Jun 2025 14:52, bbhtt said:

> The difference is the patch should make it work by default inside
> Flatpak, without needing to touch the gpg-agent options on host and

Too large of a patch for a very special setting.  And we have a proper
solution already.

Do you know that you can have a /etc/gnupg/gpg-agent.conf file which is
read before the ~/.gnupg/gpg.conf file?  This might already help - I
don't know the details of flatpack, though.

What you can also do is to examine an environment variable and set the
rspecive options depending on the envvar.  For example assuming you have
a INSIDE_FLATPACK set to a non-zero value:

[getreg flatpack INSIDE_FLATPACK]
[if $flatpack]
  change-std-env-name -WHATEVER
  change-std-env-name -OTHERTHING
[fi]

Either in the global or in the local conf file.  


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20250621/fd4e7f3b/attachment.sig>


More information about the Gnupg-users mailing list