Fix passing EnvMap for Flatpak builds (#6647)

When using -Dflatpak=true the EnvMap was passed as the incorrect type.
pull/6692/head
Mitchell Hashimoto 2025-03-09 18:39:54 -07:00 committed by GitHub
commit 0ecee3ee92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ const Subprocess = struct {
// Flatpak command must have a stable pointer.
self.flatpak_command = .{
.argv = self.args,
.env = &self.env,
.env = if (self.env) |*env| env else null,
.stdin = pty.slave,
.stdout = pty.slave,
.stderr = pty.slave,