Patching GnuPG to skip sending DBUS_SESSION_BUS_ADDRESS in Flatpak
bbhtt
bbhtt.zn0i8 at gmail.com
Sat Jun 21 16:30:36 CEST 2025
On 21/06/25 19:27, Werner Koch wrote:
> On Wed, 18 Jun 2025 14:52, bbhtt said:
> Too large of a patch for a very special setting. And we have a proper
> solution already.
That's fine, we can carry it :)
> 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.
>
I don't think that works here.
The canonical way of checking if something is running inside Flatpak is
to test for the existence of the file `/.flatpak-info` inside the sandbox.
But the gpg-agent is running on host, it is not running inside the
sandbox.
I don't think it has any idea whether the forwarded stdenvnames
is coming from "GPG on host" vs. "GPG running inside the Flatpak
container".
- bbhtt
https://bbhtt.space
More information about the Gnupg-users
mailing list