From 300f4544ef60caa7cdc7cb158007d60809703434 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 9 Mar 2025 23:46:24 +0100 Subject: [PATCH] Fix passing EnvMap for Flatpak builds When using -Dflatpak=true the EnvMap was passed as the incorrect type. --- src/termio/Exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 4f63076de..770420f0c 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -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,