fix: give FEX its settings in an x86-64 Flatpak sandbox

FEX read its socket name, config folder and HOME from proot's environment,
not from the env -i that follows it, so FEXServer never started and
Flatpak's ldconfig step failed.
This commit is contained in:
The412Banner committed 2026-10-19 22:21:32 +00:00
1 parent f722239bd9
commit bc046dc631
1 file changed
+2
@@ -354,6 +354,8 @@ object BwrapSpawner {
put("PROOT_TMP_DIR", LinuxRuntime.prootTempDir(context).path)
if (SessionPrefs.prootNoSeccomp(context)) put("PROOT_NO_SECCOMP", "1")
LinuxRuntime.prootLibraryPath(context).takeIf { it.isNotEmpty() }?.let { put("LD_LIBRARY_PATH", it) }
// A launcher (FEX) reads its own settings from the environment proot hands it, not from env -i's.
if (plan.launcher.isNotEmpty()) plan.env.filterKeys { it.startsWith("FEX_") || it == "HOME" }.forEach { (k, v) -> put(k, v) }
}
val process = builder.start()
val pid = HostProcess.pidOf(process)