Skip to content

Commit 300f454

Browse files
committed
Fix passing EnvMap for Flatpak builds
When using -Dflatpak=true the EnvMap was passed as the incorrect type.
1 parent 843cc83 commit 300f454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/termio/Exec.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ const Subprocess = struct {
11051105
// Flatpak command must have a stable pointer.
11061106
self.flatpak_command = .{
11071107
.argv = self.args,
1108-
.env = &self.env,
1108+
.env = if (self.env) |*env| env else null,
11091109
.stdin = pty.slave,
11101110
.stdout = pty.slave,
11111111
.stderr = pty.slave,

0 commit comments

Comments
 (0)