From 814ab2cac03f6a8d07ef579c2f16b0fcd683fb5a Mon Sep 17 00:00:00 2001 From: The412Banner Date: Sat, 19 Sep 2026 14:01:08 -0400 Subject: [PATCH] Add to the process environment rather than replacing it Matches the exec path this was ported from; the guest command already starts with env -i, so clearing the host side changed nothing except how far the code sits from a configuration proven on a device. --- .../java/com/the412banner/steamdeck/core/ProcessHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/the412banner/steamdeck/core/ProcessHelper.java b/app/src/main/java/com/the412banner/steamdeck/core/ProcessHelper.java index 98d9f8c6df..706ad1e242 100644 --- a/app/src/main/java/com/the412banner/steamdeck/core/ProcessHelper.java +++ b/app/src/main/java/com/the412banner/steamdeck/core/ProcessHelper.java @@ -37,7 +37,10 @@ public final class ProcessHelper { ProcessBuilder builder = new ProcessBuilder(splitCommand(command)); if (workingDir != null) builder.directory(workingDir); if (envp != null) { - builder.environment().clear(); + // Added to the app's own environment rather than replacing it, which is what + // Bannerlator does on the path this was taken from. proot needs nothing from the + // inherited set, but the guest command starts with `env -i` anyway, so clearing + // here buys nothing and only differs from the configuration proven on a device. for (String entry : envp) { int eq = entry.indexOf('='); if (eq > 0) builder.environment().put(entry.substring(0, eq), entry.substring(eq + 1));