diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-08 21:31:07 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-08 21:31:07 +0200 |
| commit | 3332e0ab2b39c24acf713d7a19af46addc165519 (patch) | |
| tree | da2e68e1a29da77f4d0fd0d29ea09b8dd14fe619 /src/server.zig | |
| parent | b2fbdf2d87e21c724d82eb59ef7f5dae26b39c7e (diff) | |
| download | river-3332e0ab2b39c24acf713d7a19af46addc165519.tar.gz river-3332e0ab2b39c24acf713d7a19af46addc165519.tar.xz | |
Fix environment of spawned processes
std.ChildProcess isn't handling environment variables set at runtime properly,
so just use libc directly.
Diffstat (limited to 'src/server.zig')
| -rw-r--r-- | src/server.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.zig b/src/server.zig index c729fd3..94d4ff7 100644 --- a/src/server.zig +++ b/src/server.zig @@ -4,6 +4,7 @@ const command = @import("command.zig"); const Config = @import("config.zig").Config; const DecorationManager = @import("decoration_manager.zig").DecorationManager; +const Log = @import("log.zig").Log; const Output = @import("output.zig").Output; const Root = @import("root.zig").Root; const Seat = @import("seat.zig").Seat; @@ -105,8 +106,7 @@ pub const Server = struct { return error.CantStartBackend; } - // Set the WAYLAND_DISPLAY environment variable to our socket and run the - // startup command if requested. */ + // Set the WAYLAND_DISPLAY environment variable to our socket if (c.setenv("WAYLAND_DISPLAY", socket, 1) == -1) { return error.CantSetEnv; } |
