~ruther/guix-local

ref: 877f7b7c1a0c83308ff1954d59352702343f0c04 guix-local/gnu/packages/patches/flatpak-unset-gdk-pixbuf-for-sandbox.patch -rw-r--r-- 784 bytes
877f7b7c — Herman Rimm gnu: rust-actix-http-test-1: Fix package-name. 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Most Guix system setup with desktop evironment will install GDK_PIXBUF_MODULE_FILE
environment variable in the system profile, and it'll be leaked into the sandbox
environment of flatpak, so the applications in sandbox may fail to find correct
GdkPixbuf loaders.

This patch unset the GDK_PIXBUF_MODULE_FILE environment variable before running
the sandboxed applications, prevents it to load GdkPixbuf loaders from the path
of host system.

--- a/common/flatpak-run.c
+++ b/common/flatpak-run.c
@@ -1900,6 +1900,7 @@ static const ExportData default_exports[] = {
   {"XKB_CONFIG_ROOT", NULL},
   {"GIO_EXTRA_MODULES", NULL},
   {"GDK_BACKEND", NULL},
+  {"GDK_PIXBUF_MODULE_FILE", NULL},
   {"VK_ADD_DRIVER_FILES", NULL},
   {"VK_ADD_LAYER_PATH", NULL},
   {"VK_DRIVER_FILES", NULL},