flatpak-run: Unset VK_DRIVER_FILES and VK_ICD_FILENAMES

These environment variables inform the Vulkan loader on where to find driver files.
Since they typically point to locations on the host filesystem, any application that
attempts to load Vulkan within the flatpak sandbox would break with these set.
This commit is contained in:
Steveice10
2023-10-06 19:32:56 -07:00
committed by Patrick
parent 6a57fa42e4
commit b8d8d80c61
2 changed files with 4 additions and 0 deletions

View File

@@ -558,6 +558,8 @@ static const ExportData default_exports[] = {
{"XKB_CONFIG_ROOT", NULL},
{"GIO_EXTRA_MODULES", NULL},
{"GDK_BACKEND", NULL},
{"VK_DRIVER_FILES", NULL},
{"VK_ICD_FILENAMES", NULL},
};
static const ExportData no_ld_so_cache_exports[] = {

View File

@@ -104,6 +104,8 @@
<member>XKB_CONFIG_ROOT</member>
<member>GIO_EXTRA_MODULES</member>
<member>GDK_BACKEND</member>
<member>VK_DRIVER_FILES</member>
<member>VK_ICD_FILENAMES</member>
</simplelist>
<para>
Also several environment variables with the prefix "GST_" that are used by gstreamer