mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-03 06:47:19 -04:00
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.
(cherry picked from commit b8d8d80c61)
This commit is contained in:
committed by
Simon McVittie
parent
595b4f1f4c
commit
8607ee7ad0
@@ -1900,6 +1900,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[] = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user