This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
2022-04-23 02:39:32 +00:00
|
|
|
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
|
2023-03-08 06:51:56 +00:00
|
|
|
@@ -1900,6 +1900,7 @@ static const ExportData default_exports[] = {
|
|
|
|
{"XKB_CONFIG_ROOT", NULL},
|
|
|
|
{"GIO_EXTRA_MODULES", NULL},
|
|
|
|
{"GDK_BACKEND", NULL},
|
2022-04-23 02:39:32 +00:00
|
|
|
+ {"GDK_PIXBUF_MODULE_FILE", NULL},
|
|
|
|
};
|
|
|
|
|
|
|
|
static const ExportData no_ld_so_cache_exports[] = {
|