Skip to content

Commit

Permalink
flatpak-run: unset GIO_EXTRA_MODULES
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alaviss authored and TingPing committed Dec 7, 2022
1 parent 8daa975 commit df0b9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/flatpak-run.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down
1 change: 1 addition & 0 deletions doc/flatpak-run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df0b9d9

Please sign in to comment.