nixpkgs-suyu/pkgs/development/libraries/flatpak
Jan Tojnar 1ca880a228 flatpak: fix flatpak-spawn --clear-env
Chromium Flatpak package uses flatpak-spawn command for sandboxing
the child processes. The command comes from flatpak-xdg-utils, which is
presumably included in Flatpak runtimes. The command then calls Spawn
method of the portal.

The portal supports running commands in a clear environment when passed
FLATPAK_SPAWN_FLAGS_CLEAR_ENV flag. Unfortunately, that also clears PATH,
which is probably what prevents `flatpak` command itself from being found.

There is a relevant TODO note in the code:
https://github.com/flatpak/flatpak/blob/1.10.2/portal/flatpak-portal.c#L995-L999

For now, let’s hardcode the path to the binary.
2021-04-06 19:16:34 +02:00
..
bubblewrap-paths.patch
default.nix flatpak: fix flatpak-spawn --clear-env 2021-04-06 19:16:34 +02:00
fix-paths.patch
fix-test-paths.patch
respect-xml-catalog-files-var.patch
unset-env-vars.patch
use-flatpak-from-path.patch
validate-icon-pixbuf.patch