summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeorize <leorize+oss@disroot.org>2022-12-07 15:16:46 +0000
committerPatrick <tingping@tingping.se>2022-12-07 16:20:51 -0600
commitdf0b9d98b53b7486a0a23438a686af3e5d892cfd (patch)
treecb5a1888a27d55b2f1539671c2128f79f02e6745
parent8daa975ab3e11e56b2c168dc62b30f029751dbd2 (diff)
downloadflatpak-df0b9d98b53b7486a0a23438a686af3e5d892cfd.tar.gz
flatpak-run: unset GIO_EXTRA_MODULES
This variable contains paths to load GIO modules from. For the most part, they refer to paths outside of the sandbox or if they happen to be in the sandbox, would contain modules that are incompatible with the sandbox runtime (ie. different libc). While I've not found programs that would crash outright, it may cause unexpected behaviors (eg. Apostrophe not being able to render math in preview panel). This variable is set by NixOS for its dependency boxing.
-rw-r--r--common/flatpak-run.c1
-rw-r--r--doc/flatpak-run.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c
index a02ed96c..00574e62 100644
--- a/common/flatpak-run.c
+++ b/common/flatpak-run.c
@@ -1911,6 +1911,7 @@ static const ExportData default_exports[] = {
{"GST_INSTALL_PLUGINS_HELPER", NULL},
{"KRB5CCNAME", NULL},
{"XKB_CONFIG_ROOT", NULL},
+ {"GIO_EXTRA_MODULES", NULL},
};
static const ExportData no_ld_so_cache_exports[] = {
diff --git a/doc/flatpak-run.xml b/doc/flatpak-run.xml
index 0814b2b6..4e37f910 100644
--- a/doc/flatpak-run.xml
+++ b/doc/flatpak-run.xml
@@ -102,6 +102,7 @@
<member>XCURSOR_PATH</member>
<member>KRB5CCNAME</member>
<member>XKB_CONFIG_ROOT</member>
+ <member>GIO_EXTRA_MODULES</member>
</simplelist>
<para>
Also several environment variables with the prefix "GST_" that are used by gstreamer