Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

flatpak: clear GDK_PIXBUF_MODULE_FILE

GDK_PIXBUF_MODULE_FILE is often set to a nix store path not available in a app
sandbox. This can cause some apps to fail launching, simply reset this env var
when running applications.

fixes https://github.com/NixOS/nixpkgs/issues/53441

(cherry picked from commit 752e176d67e41b6b1d2da20a0c9c70079fe56a60)

authored by

Tor Hedin Brønner and committed by
Matthew Bauer
be89fd6a caacbe98

+11
+1
pkgs/development/libraries/flatpak/default.nix
··· 32 # patch taken from gtk_doc 33 ./respect-xml-catalog-files-var.patch 34 ./use-flatpak-from-path.patch 35 ]; 36 37 nativeBuildInputs = [
··· 32 # patch taken from gtk_doc 33 ./respect-xml-catalog-files-var.patch 34 ./use-flatpak-from-path.patch 35 + ./unset-env-vars.patch 36 ]; 37 38 nativeBuildInputs = [
+10
pkgs/development/libraries/flatpak/unset-env-vars.patch
···
··· 1 + --- a/common/flatpak-run.c 2 + +++ b/common/flatpak-run.c 3 + @@ -1192,6 +1192,7 @@ static const ExportData default_exports[] = { 4 + {"PERLLIB", NULL}, 5 + {"PERL5LIB", NULL}, 6 + {"XCURSOR_PATH", NULL}, 7 + + {"GDK_PIXBUF_MODULE_FILE", NULL}, 8 + }; 9 + 10 + static const ExportData no_ld_so_cache_exports[] = {