Skip to content
Snippets Groups Projects

runtime: Set LD_LIBRARY_PATH before using capsule-capture-libs

Merged Ludovico de Nittis requested to merge wip/denittis/t24167 into master
All threads resolved!
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -1159,8 +1159,15 @@ static FlatpakBwrap *
pv_runtime_get_capsule_capture_libs (PvRuntime *self,
RuntimeArchitecture *arch)
{
const gchar *ld_library_path;
FlatpakBwrap *ret = pv_bwrap_copy (self->container_access_adverb);
/* If we have a custom "LD_LIBRARY_PATH", we want to preserve
* it when calling capsule-capture-libs */
+1
ld_library_path = g_getenv("LD_LIBRARY_PATH");
if (ld_library_path != NULL)
flatpak_bwrap_set_env (ret, "LD_LIBRARY_PATH", ld_library_path, TRUE);
flatpak_bwrap_add_args (ret,
arch->capsule_capture_libs,
"--container", self->container_access,
Loading