Skip to content

Commit

Permalink
flatpak: clear GDK_PIXBUF_MODULE_FILE
Browse files Browse the repository at this point in the history
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 #53441

(cherry picked from commit 752e176)
  • Loading branch information
hedning authored and matthewbauer committed Jun 8, 2019
1 parent caacbe9 commit be89fd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/libraries/flatpak/default.nix
Expand Up @@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
# patch taken from gtk_doc
./respect-xml-catalog-files-var.patch
./use-flatpak-from-path.patch
./unset-env-vars.patch
];

nativeBuildInputs = [
Expand Down
10 changes: 10 additions & 0 deletions pkgs/development/libraries/flatpak/unset-env-vars.patch
@@ -0,0 +1,10 @@
--- a/common/flatpak-run.c
+++ b/common/flatpak-run.c
@@ -1192,6 +1192,7 @@ static const ExportData default_exports[] = {
{"PERLLIB", NULL},
{"PERL5LIB", NULL},
{"XCURSOR_PATH", NULL},
+ {"GDK_PIXBUF_MODULE_FILE", NULL},
};

static const ExportData no_ld_so_cache_exports[] = {

0 comments on commit be89fd6

Please sign in to comment.