diff --git a/src/build/desktop_template.zig b/src/build/desktop_template.zig index 0741ff81a..7b066bfcc 100644 --- a/src/build/desktop_template.zig +++ b/src/build/desktop_template.zig @@ -6,10 +6,11 @@ pub fn main() !void { defer _ = debug.deinit(); const alloc = debug.allocator(); - const stdin = std.io.getStdIn(); + const stdin = std.io.getStdIn(); const stdout = std.io.getStdOut(); var input = stdin.reader(); + while (try input.readUntilDelimiterOrEofAlloc(alloc, '\n', 4096)) |line| { defer alloc.free(line); @@ -23,6 +24,7 @@ pub fn main() !void { defer alloc.free(buf3); if (cfg.flatpak and std.mem.startsWith(u8, buf3, "SystemdService=")) continue; + try stdout.writeAll(buf3); try stdout.writeAll("\n"); }